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

is date-time supported in V201909 and latest version of jar #1097

Open
surajit-pradhan opened this issue Jul 31, 2024 · 1 comment
Open

is date-time supported in V201909 and latest version of jar #1097

surajit-pradhan opened this issue Jul 31, 2024 · 1 comment

Comments

@surajit-pradhan
Copy link

Below schema doesn't work for me with V201909 and latest version of jar.

{
  "type": "object",
  "properties": {
    "datetime": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": ["datetime"]
}

can somebody confirm whether i am right or i am missing something.My old code is breaking after jar upgrade .I had to choose workaround to use pattern to validate date-time.

@justin-tay
Copy link
Contributor

Since Draft 2019-09 the format keyword only generates annotations by default and does not generate assertions.

This behavior can be overridden to generate assertions by setting the formatAssertionsEnabled to true in SchemaValidatorsConfig or ExecutionConfig.

@surajit-pradhan surajit-pradhan changed the title is date-time is supported in V201909 and latest version of jar is date-time is supported V201909 and latest version of jar Aug 3, 2024
@surajit-pradhan surajit-pradhan changed the title is date-time is supported V201909 and latest version of jar is date-time supported in V201909 and latest version of jar Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants