-
Notifications
You must be signed in to change notification settings - Fork 20
Vocab ids with context #80
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
Vocab ids with context #80
Conversation
Note I got a little confused about the use of "if" and "is-complex" but I think I have it figured out now... at least I know how to get it to give me sane results. Some of my older schema refactorings were wrong though so I have to go back and fix them. |
The approval was a mistake, I wanted to approve one file but ended up approving everything |
It seems that the files you created are completely correct. However, when you are doing edits, make sure that you change the ids found at:
|
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.
These are correct but you can remove the additional keys that are validated and leave only the format. This way, if a key that is not required for this assertion changes, we will not have to change this schema
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.
In td-vocab-description--InteractionAffordance.json you can remove the data schema
Thanks for the feedback... yeah, some of the errors you note were early files I edited before I figured out completely how things worked. I need to go back and update some things to get the right pass/fail/not-impl results. As for "also", probably the only "also" clause I want is for td-vocabulary, to roll up and summarize the vocab results. In general though I think combining results is better done in the implementation report generator once I have results from ALL the implementations in one place. |
I finished my first pass through everything but there are still a few gaps (for example, there is no test for securityDefinitions, and a few other terms) and problems, including inconsistencies with the spec, so it needs another round of review and edits. I also updatd my PR on wot-thing-directory with the test results. |
BTW we probably want to also think about how we can restructure this so that changes to the spec don’t create huge editing headaches. For example, if we add “descriptions” and “titles” to SecurityScheme, dozens of files currently would need to be updated. I’m wondering if we can use $refs to a single reference json schema (in a separate file) rather than repeating stuff in each schema. Under the current approach it’s too easy for definitions to get out of sync. |
In order to generate test results compatible with the change described here, w3c/wot-thing-description#474, it was necessary to update the AssertionTester/Assertion schemas. Unfortunately this was not as simple as just renaming files since some schemas tested keywords in multiple contexts and to be compatible with the new naming scheme these schemas needed to be broken up into simpler schemas that check for each keyword in one specific context.