Beispiel #1
0
class PointSchema(Schema):
    """GeoJSON Point schema.

    See https://tools.ietf.org/html/rfc7946#section-3.1.2
    """

    coordinates = List(Float, required=True, validate=GeometryValidator(Point))
    type = Constant('Point')
Beispiel #2
0
class No_Content_Response_Schema(Base_Response_Schema):
    status = Constant(No_Content_Response.status())
    error = Constant(No_Content_Response.error)
    code = Constant(No_Content_Response.code)
Beispiel #3
0
class Internal_Server_Error_Response_Schema(Base_Response_Schema):
    status = Constant(Internal_Server_Error_Response.status())
    error = Constant(Internal_Server_Error_Response.error)
    code = Constant(Internal_Server_Error_Response.code)
Beispiel #4
0
class Created_Response_Schema(Base_Response_Schema):
    status = Constant(Created_Response.status())
    error = Constant(Created_Response.error)
    code = Constant(Created_Response.code)
Beispiel #5
0
class Conflict_Response_Schema(Base_Response_Schema):
    status = Constant(constant=Conflict_Response.status())
    error = Constant(constant=Conflict_Response.error)
    code = Constant(constant=Conflict_Response.code)
Beispiel #6
0
class Bad_Request_Response_Schema(Base_Response_Schema):
    status = Constant(constant=Bad_Request_Response.status())
    error = Constant(constant=Bad_Request_Response.error)
    code = Constant(constant=Bad_Request_Response.code)
Beispiel #7
0
class Unsupported_Media_Type_Response_Schema(Base_Response_Schema):
    status = Constant(Unsupported_Media_Type_Response.status())
    error = Constant(Unsupported_Media_Type_Response.error)
    code = Constant(Unsupported_Media_Type_Response.code)
Beispiel #8
0
class Unprocessable_Entity_Response_Schema(Base_Response_Schema):
    status = Constant(Unprocessable_Entity_Response.status())
    error = Constant(Unprocessable_Entity_Response.error)
    code = Constant(Unprocessable_Entity_Response.code)
Beispiel #9
0
class Unauthorized_Response_Schema(Base_Response_Schema):
    status = Constant(Unauthorized_Response.status())
    error = Constant(Unauthorized_Response.error)
    code = Constant(Unauthorized_Response.code)
Beispiel #10
0
class Content_Response_Schema(Ok_Response_Schema):
    status = Constant(Content_Response.status())
    error = Constant(Content_Response.error)
    code = Constant(Content_Response.code)
Beispiel #11
0
class Ok_Response_Schema(Base_Response_Schema):
    status = Constant(Ok_Response.status())
    error = Constant(Ok_Response.error)
    code = Constant(Ok_Response.code)
Beispiel #12
0
class Not_Modified_Response_Schema(Base_Response_Schema):
    status = Constant(Not_Modified_Response.status())
    error = Constant(Not_Modified_Response.error)
    code = Constant(Not_Modified_Response.code)
Beispiel #13
0
class Not_Acceptable_Response_Schema(Base_Response_Schema):
    status = Constant(Not_Acceptable_Response.status())
    error = Constant(Not_Acceptable_Response.error)
    code = Constant(Not_Acceptable_Response.code)