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

Upgrade schemas to draft 2020-12 #224

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

aaronfranke
Copy link
Contributor

Upgrade JSON schemas to draft 2020-12, from draft 04. Khronos has already upgraded the core glTF schemas to the newer draft 2020-12 and doing so for extensions is still a work-in-progress. See KhronosGroup/glTF#2049 for discussion. Changes include:

  • Adding a unique "$id" to each schema.
  • Changing single-member "enum" to "const".
  • Using "exclusiveMinimum": 0.0 instead of "minimum": 0.0 and "exclusiveMinimum": true.

I also ensured all schemas were in a consistent order and had descriptions. While not technically related to upgrading the schema version, it was easiest to just do these things at the same time while I was combing over the schemas anyway.

Copy link
Contributor

@antpb antpb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this! Looks good in my review. 👍 🦖

@antpb antpb merged commit 35cd3a3 into omigroup:main Jul 11, 2024
2 checks passed
@aaronfranke aaronfranke deleted the schema-2020-12 branch July 11, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants