-
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
JSON schema cleanup for EXT_mesh_features #28
Conversation
extensions/2.0/Vendor/EXT_mesh_features/schema/primitive.EXT_mesh_features.schema.json
Outdated
Show resolved
Hide resolved
270e7ad
to
3a64ff8
Compare
extensions/2.0/Vendor/EXT_mesh_features/schema/primitive.EXT_mesh_features.schema.json
Outdated
Show resolved
Hide resolved
extensions/2.0/Vendor/EXT_mesh_features/schema/class.property.schema.json
Outdated
Show resolved
Hide resolved
extensions/2.0/Vendor/EXT_mesh_features/schema/class.property.schema.json
Outdated
Show resolved
Hide resolved
…schema.json Co-authored-by: Don McCurdy <[email protected]>
…esh_features.schema.json Co-authored-by: Don McCurdy <[email protected]>
…esh_features.schema.json
(I hope it's OK to drop two points here that might be unrelated to the PR itself, but might possibly be included here: )
|
c56ae48
to
be5cf05
Compare
I'm not sure why it's there, but I'd copied this from material.normalTextureInfo.schema.json |
Thanks for pointing this out, I fixed all the broken links. I forgot to update some of them when I removed the landing pages in 173fba2 |
Related to KhronosGroup#2062? Same applies to the empty |
The original question there was rather a syntactical one (whether that odd (It's probably not critical, and iff (or when?) we do this, it should probably be one, dedicated cleanup pass of (maybe replacing the To have a "trace" of how I stumbled over this:
I considered to add hints to the linked bullet points, like
Or maybe even more elaborate, like
But I'm afraid that at some point, this detail would rather be confusing than helpful... |
Oh dear.
And pasted it in https://www.jsonschemavalidator.net/ And this object validates against that schema:
Specifically this part from https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_mesh_features/schema/primitive.EXT_mesh_features.schema.json#L11 :
causes the JSON snippet to validate against both, a Feature ID Attribute and a Feature ID Texture. And at this point, it is not clear which type of object that is. One could probably avoid this, with some trickery involving Not worth the effort, I guess...? |
I think this is helpful, I pushed a commit with that change. |
Not sure what to suggest for the validation issue, but maybe let's leave that for another PR? |
Sure. The spec text already established that constraint, and modeling it via the schema itself may be difficult and cumbersome. (I'm not absolutely sure that it is possible at all, but might give it a try at some point...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lilleyse a couple small comments
extensions/2.0/Vendor/EXT_mesh_features/schema/glTF.EXT_mesh_features.schema.json
Show resolved
Hide resolved
extensions/2.0/Vendor/EXT_mesh_features/schema/propertyTable.schema.json
Outdated
Show resolved
Hide resolved
extensions/2.0/Vendor/EXT_mesh_features/schema/class.property.schema.json
Outdated
Show resolved
Hide resolved
Merged, thanks @lilleyse! |
JSON schema cleanup for EXT_mesh_features
Merge #27 first
glTFProperty.schema.json
README
min
/max
are now allowed forMATN
typesTODO:
gltf.EXT_mesh_features.schema.json
toglTF.EXT_mesh_features.schema.json
after EXT_mesh_features: Fixes and tightening of JSON schema. #27 is merged