-
Notifications
You must be signed in to change notification settings - Fork 469
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
Cleanup pass for 1.1 - JSON schema #677
Cleanup pass for 1.1 - JSON schema #677
Conversation
Let us know what you find. Hopefully it's valid and we can remove all occurrences of |
Could you also verify whether we can remove the empty property declarations in "derived" schemas? We've talked about removing them before. For example...
|
It's tremendously hard to find that out by reading the specification. I had tried to find the answer, and eventually asked it at KhronosGroup/glTF#2062 (comment) (in the hope that I could stand on the shoulders of giants here). Questions like these quickly tend to lead to looong GitHub issue discussions in the However, what I found out so far: 1. Replacing the
2. Omitting the properties that have already been part of the ref'd schema seems to be valid. I tried this out with our
(I actually verified all this with https://github.com/jimblackler/jsonschemafriend . Kudos to the developer there. There are a bunch of JSON validation libraries out there that have ... ... lots of room for improvements. But this one seems to do what it is supposed to do). tl;dr: I'll update the schemas accordingly. If this turned out to be "wrong", I'd be curious to see why... |
The schema updates have been done, BUT I have not yet checked in how far that affects the code generator. (I noticed some fundamental flaws in my code generator, and am currently trying to find a solution for that). I'll try to check whether it works with the |
Is it ok then to remove the empty |
Removing the empty But replacing the I've already spent more time than I should with the intricacies of the code generator for this particular task, and trying to fix that does not seem to be possible (for me) within a reasonable time frame. One viable path could be to create a PR based on this branch, just before the |
Ok let's get that change in and then merge. The code generator can be fixed post-merge. |
Thanks @javagl. |
Addressing some further points from #651 .
This mainly refers to the JSON schema, so it could make sense to have this as one dedicated PR.
The 1.1 documentation does not seem to refer to the legacy tile formats any more. The only mentions are in "Next" (i.e. the 1.0 extensions)
I've done a minor wording pass and elaborated some descriptions a bit. If this is not considered to be "done", it should be considered to be "ongoing", and/or tracked in a dedicated issue.
Done.
Unrelated:
We talked about replacing
allOf [ { $ref: } ]
with a simple$ref
. I did this on one pass, in all placed except for the "root property". I think that it should be possible to replacewith
but this has to be verified (omitting the
type
at the top level looks odd, even though I'm somewhat sure that this is valid...)