All Downloads are FREE. Search and download functionalities are using the official Maven repository.

python.model_templates.validations.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{#maxLength}}
            'max_length': {{.}},
{{/maxLength}}
{{#minLength}}
            'min_length': {{.}},
{{/minLength}}
{{#maxItems}}
            'max_items': {{.}},
{{/maxItems}}
{{#minProperties}}
            'min_properties': {{.}},
{{/minProperties}}
{{#maxProperties}}
            'max_properties': {{.}},
{{/maxProperties}}
{{#minItems}}
            'min_items': {{.}},
{{/minItems}}
{{#maximum}}
            {{#exclusiveMaximum}}'exclusive_maximum'{{/exclusiveMaximum}}'inclusive_maximum': {{maximum}},
{{/maximum}}
{{#minimum}}
            {{#exclusiveMinimum}}'exclusive_minimum'{{/exclusiveMinimum}}'inclusive_minimum': {{minimum}},
{{/minimum}}
{{#pattern}}
            'regex': {
                'pattern': r'{{{vendorExtensions.x-regex}}}',  # noqa: E501{{#vendorExtensions.x-modifiers}}
                {{#-first}}'flags': (re.{{.}}{{/-first}}{{^-first}}          re.{{.}}{{/-first}}{{^-last}} | {{/-last}}{{#-last}}){{/-last}}{{/vendorExtensions.x-modifiers}}
            },
{{/pattern}}
{{#multipleOf}}
            'multiple_of': {{.}},
{{/multipleOf}}
        },




© 2015 - 2024 Weber Informatics LLC | Privacy Policy