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 and scope joint data inside of joint #30

Merged

Conversation

aaronfranke
Copy link
Contributor

This PR has 2 changes, which would conflict with each other so I just did it as one PR.

  1. 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 Consistent JSON schema version for core and extensions KhronosGroup/glTF#2049 for discussion. Existing files such as the box shape were already using a feature only available in newer schemas, "exclusiveMinimum" set to a number, which makes it not a valid draft 04 schema. So we may as well upgrade all the way, instead of downgrading those fields.

    • This includes changing single-member "enum" to "const", adding "$id", and using "exclusiveMinimum".
  2. Scope joint limits and drives schemas inside of joint. This means that I renamed joint_limit to joint.limit and joint_drive to joint.drive. This ensures the schema file names reflect the structure of the data.

@eoineoineoin eoineoineoin merged commit 5738d32 into eoineoineoin:master Jul 10, 2024
@aaronfranke aaronfranke deleted the schema-2020-12-joint-data branch July 10, 2024 10:45
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

Successfully merging this pull request may close these issues.

2 participants