Skip to content

Schema should validate custom format attributes & update data_attrs filter #731

@Floris272

Description

@Floris272

Thema / Theme

Objecten API

Omschrijving / Description

See parent issue

TODO

jsonschema

https://python-jsonschema.readthedocs.io/en/latest/validate/#validating-formats

  • add jsonschema[format-nongpl] dependency
  • add format_checker=Draft202012Validator.FORMAT_CHECKER to jsonschema.validate
  • add custom email check
  • add tests for all formats
  • add strict boolean to ObjectTypeVersion model which should defines if the format_checker should be used
    • should default to config setting

data_attrs API filter

  • add datetime, time & duration, (maybe delta) to utils.string_to_value
  • other fields are strings and should work with existing exact & icontains filters

Toegevoegde waarde / Added value

No response

Aanvullende opmerkingen / Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions