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

JSON Schema no longer works since jsonix.org is offline #98

Open
pwmcintyre opened this issue Jul 17, 2024 · 1 comment
Open

JSON Schema no longer works since jsonix.org is offline #98

pwmcintyre opened this issue Jul 17, 2024 · 1 comment

Comments

@pwmcintyre
Copy link

Hey team,

Looks like when converting to JSON Schema, all the types do not use primitives, but rather refer to an external schema hosted on jsonix.org.

Example:

{
    "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/dateTime"
}

This site appears to have gone offline, rendering these schemas useless.

Wondering:

  • is this intentional?
  • are these available on GitHub?

Seeking advice

@pwmcintyre
Copy link
Author

pwmcintyre commented Jul 17, 2024

workaround

It looks as though the above DateTime definition is being used where a property has type xsd:dateTime.

This appears to be ISO8601 compliant, and so the JSON Schema equivalent is simply a string type with format: "date-time".

This conversation could be simplified to use primitive JSON Schema types.

In the meantime I will do this manually.

refs:

⚠️ NOTE: The docs below seem to convert xsd:dateTime into a complex object where year/month/day are split into nested types:
https://github.com/highsource/jsonix-schema-compiler/wiki/JSON-Schema-for-XML-Schema

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

1 participant