-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support transforming Draft3 schemas #83
Comments
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
I have almost zero experience with draft3, so I'll be pasting my findings here so anybody can correct me if I'm getting any of it wrong. |
One key piece of Alterschema is teaching the tool how to "walk" over all the subschemas of a given schema by definition all possible applicator keywords. From skimming https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-03, all the keywords that take subschemas in some way are:
See #86 for my initial definition take. |
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
As per the rules, these are my findings so far (I'll be updating this comment with new findings):
|
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 (comment) Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
I'm going to mix in a bit of draft 2 and 3 references to build a timeline of some of the keywords. I'm no expert, so please correct me if i'm wrong.
|
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
See: #83 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti You mentioned other work on adjacent projects would support this work, has there been any movement on those projects? |
@jeremyfiel Yes, there is! I'm implementing some dialect-agnostic JSON Schema foundations here: https://www.jsontoolkit.org. The idea is for that project to eventually replace the engine we have here, so we can:
Feel free to watch that repo. Definitely not forgetting about this issue. I promise it will be fixed once those things are in place. |
To support upgrading arbitrary draft 3 schemas, we need to define rules to upgrade draft 3 to draft 4.
The text was updated successfully, but these errors were encountered: