-
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
Any plans for backward conversion? #176
Comments
Hey @tmargot , I considered (and attempted) to perform downgrades, but they didn't work very well apart from simple cases, as each version of JSON Schema introduced functionality that cannot be fully represented in previous versions.
Why do you need to downgrade on the first place? Can you show me some example schemas that you want to downgrade? Just want to understand the level of "lossy-ness" that we could in theory provide |
Hi @jviotti, Thanks for the reply, our integration platform is Boomi (https://boomi.com/) which currently only supports JSON Schema Draft 3/4 for JSON profile import. Our current integration project has NetSuite REST API as a source and the NetSuite metadata (schema) endpoint only returns Draft 6. https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_157373386674.html#The-REST-API-Browser I have looked at https://json-schema.org/draft-06/json-schema-release-notes#q:-what-are-the-changes-between-draft-04-and-draft-06 but was looking for a reliable tool instead of editing by hand. I have attached a hand modified NetSuite Subscription schema that I removed all company specific custom fields and Ids. I keep seeing mentions of backward compatibility between Draft 4 and 6, is this true? I also noted that Boomi requires the user to select the object to be imported as a profile, so I had to include the following: |
I would take the opportunity to press them to support later schema versions. Let them know that draft 4 is a decade old. |
Honestly, we all know, easier said than done. Just trying to work with what I got. |
Hi @tmargot , Thanks for the detailed response.
I see. Sadly not an uncommon scenario. I've seen similar cases before.
Note that this is also a HyperSchema document, which AlterSchema doesn't even support yet. It currently upgrades JSON Schema, but HyperSchema vocabularies remain unimplemented. That said, I'm hoping to revamp this project soon for a lot more advanced functionality, including HyperSchema.
Do you need to be able to do it automatically or do you just need reliability? Depending on what you need, at https://www.Intelligence.AI, we do some consultancy around JSON Schema (we are publishing an O'Reilly book covering JSON Schema too) and this could be something we can help on:
Happy to discuss further via e-mail or LinkedIn. |
Apologies if the wrong place for a question, but did not see a different place/link to ask one.
My current requirements are to convert from Draft 6 to Draft4. Any plans for backward conversion?
The text was updated successfully, but these errors were encountered: