Exemplo n.º 1
0
 class _float(
     _SchemaValidator(
         inclusive_maximum=987.6,
     ),
     Float32Schema
 ):
     pass
 class integer(
         _SchemaValidator(
             inclusive_maximum=100,
             inclusive_minimum=10,
             multiple_of=[2],
         ), IntSchema):
     pass
Exemplo n.º 3
0
class ObjectWithValidations(_SchemaValidator(min_properties=2, ), DictSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
    _validations (dict): the validations which apply to the current Schema
        The value is a dict that stores validations for max_length, min_length, max_items,
        min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
        inclusive_minimum, and regex.
    _additional_properties (Schema): the definition used for additional properties
        that are not defined in _properties
    """
    def __new__(
        cls,
        *args: typing.Union[dict, frozendict, ],
        _instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
        **kwargs: typing.Type[Schema],
    ):
        return super().__new__(
            cls,
            *args,
            _instantiation_metadata=_instantiation_metadata,
            **kwargs,
        )
Exemplo n.º 4
0
 class cultivar(
         _SchemaValidator(
             regex=[{
                 'pattern': r'^[a-zA-Z\s]*$',  # noqa: E501
             }], ),
         StrSchema):
     pass
class ObjectWithValidations(
    _SchemaValidator(
        min_properties=2,
    ),
    DictSchema
):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """


    def __new__(
        cls,
        *args: typing.Union[dict, frozendict, ],
        _configuration: typing.Optional[Configuration] = None,
        **kwargs: typing.Type[Schema],
    ) -> 'ObjectWithValidations':
        return super().__new__(
            cls,
            *args,
            _configuration=_configuration,
            **kwargs,
        )
 class number(
         _SchemaValidator(
             inclusive_maximum=543.2,
             inclusive_minimum=32.1,
             multiple_of=[32.5],
         ), NumberSchema):
     pass
Exemplo n.º 7
0
class StringWithValidation(_SchemaValidator(min_length=7, ), StrSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    pass
 class allOf_0(
     _SchemaValidator(
         min_length=1,
     ),
     StrSchema
 ):
     pass
 class oneOf_6(
         _SchemaValidator(
             regex=[{
                 'pattern': r'^2020.*',  # noqa: E501
             }], ),
         DateTimeSchema):
     pass
 class pattern_without_delimiter(
         _SchemaValidator(
             regex=[{
                 'pattern': r'^[A-Z].*',  # noqa: E501
             }], ),
         StrSchema):
     pass
Exemplo n.º 11
0
class UUIDString(_SchemaValidator(min_length=1, ), UUIDSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    pass
Exemplo n.º 12
0
 class arrayWithUniqueItems(
     _SchemaValidator(
         unique_items=True,
     ),
     ListSchema
 ):
     _items = NumberSchema
Exemplo n.º 13
0
 class pattern_with_digits(
         _SchemaValidator(
             regex=[{
                 'pattern': r'^\d{10}$',  # noqa: E501
             }], ),
         StrSchema):
     pass
Exemplo n.º 14
0
class IntegerMin15(_SchemaValidator(inclusive_minimum=15, ), Int64Schema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    pass
Exemplo n.º 15
0
 class _items(
     _SchemaValidator(
         inclusive_maximum=7,
     ),
     Int64Schema
 ):
     pass
Exemplo n.º 16
0
 class pattern_with_digits_and_delimiter(
         _SchemaValidator(
             regex=[{
                 'pattern': r'^image_\d{1,3}$',  # noqa: E501
                 'flags': (re.IGNORECASE)
             }], ),
         StrSchema):
     pass
 class oneOf_5(
     _SchemaValidator(
         max_items=4,
         min_items=4,
     ),
     ListSchema
 ):
     _items = AnyTypeSchema
Exemplo n.º 18
0
 class number(
     _SchemaValidator(
         inclusive_maximum=543.2,
         inclusive_minimum=32.1,
     ),
     NumberSchema
 ):
     pass
Exemplo n.º 19
0
class ArrayWithValidationsInItems(_SchemaValidator(max_items=2, ), ListSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    class _items(_SchemaValidator(inclusive_maximum=7, ), Int64Schema):
        pass
Exemplo n.º 20
0
 class origin(
         _SchemaValidator(
             regex=[{
                 'pattern': r'^[A-Z\s]*$',  # noqa: E501
                 'flags': (re.IGNORECASE)
             }], ),
         StrSchema):
     pass
Exemplo n.º 21
0
 class double(
     _SchemaValidator(
         inclusive_maximum=123.4,
         inclusive_minimum=67.8,
     ),
     Float64Schema
 ):
     pass
Exemplo n.º 22
0
 class int32withValidations(
     _SchemaValidator(
         inclusive_maximum=200,
         inclusive_minimum=20,
     ),
     Int32Schema
 ):
     pass
Exemplo n.º 23
0
 class password(
     _SchemaValidator(
         max_length=64,
         min_length=10,
     ),
     StrSchema
 ):
     pass
Exemplo n.º 24
0
 class integer(
     _SchemaValidator(
         inclusive_maximum=100,
         inclusive_minimum=10,
     ),
     IntSchema
 ):
     pass
 class string(
         _SchemaValidator(
             regex=[{
                 'pattern': r'[a-z]',  # noqa: E501
                 'flags': (re.IGNORECASE)
             }], ),
         StrSchema):
     pass
Exemplo n.º 26
0
class OrderIdSchema(
    _SchemaValidator(
        inclusive_maximum=5,
        inclusive_minimum=1,
    ),
    Int64Schema
):
    pass
class NumberWithValidations(
        _SchemaValidator(
            inclusive_maximum=20,
            inclusive_minimum=10,
        ), NumberSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    pass
class DateWithValidations(
        _SchemaValidator(
            regex=[{
                'pattern': r'^2020.*',  # noqa: E501
            }], ),
        DateSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """
    pass
Exemplo n.º 29
0
class IntegerMin15(_SchemaValidator(inclusive_minimum=15, ), Int64Schema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
    _validations (dict): the validations which apply to the current Schema
         The value is a dict that stores validations for max_length, min_length, max_items,
         min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
         inclusive_minimum, and regex.
    """
    pass
Exemplo n.º 30
0
class ArrayWithValidationsInItems(_SchemaValidator(max_items=2, ), ListSchema):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.

    Attributes:
    _items (Schema): the schema definition of the array items
    _validations (dict): the validations which apply to the current Schema
         The value is a dict that stores validations for max_length, min_length, max_items,
         min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
         inclusive_minimum, and regex.
    """
    class _items(_SchemaValidator(inclusive_maximum=7, ), Int64Schema):
        pass