Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add format keyword support #54

Closed
21 tasks done
OptimumCode opened this issue Feb 10, 2024 · 0 comments · Fixed by #115
Closed
21 tasks done

Add format keyword support #54

OptimumCode opened this issue Feb 10, 2024 · 0 comments · Fixed by #115
Assignees
Labels
enhancement New feature or request

Comments

@OptimumCode
Copy link
Owner

OptimumCode commented Feb 10, 2024

Add support for format keyword annotations and assertions as described in JSON schema spec.

I have decided to change the approach: supporting all the formats defined in the spec is a huge amount of work. Because of that this task will be split into several small sub-tasks:

  • Provide API
    • Provide an interface to implement a format validator and API to register custom format validators
    • Provide API for switching between assertion and annotation mode for format keyword
  • Implement formats:
    • date
    • time
    • date-time
    • duration
    • email
    • hostname
    • idn-email
    • idn-hostname
    • ipv4
    • ipv6
    • iri
    • iri-reference
    • json-pointer
    • relative-json-pointer
    • regex
    • uri
    • uri-reference
    • uri-template
    • uuid
@OptimumCode OptimumCode added the enhancement New feature or request label Feb 10, 2024
@OptimumCode OptimumCode self-assigned this Feb 10, 2024
OptimumCode added a commit that referenced this issue Feb 29, 2024
This patch introduces:

- API for implementing user's format validator and registering it in the
schema
- Support for data/time formats

Related to #54
OptimumCode added a commit that referenced this issue Mar 8, 2024
OptimumCode added a commit that referenced this issue Apr 15, 2024
OptimumCode added a commit that referenced this issue Apr 26, 2024
OptimumCode added a commit that referenced this issue Apr 29, 2024
OptimumCode added a commit that referenced this issue May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant