-
Notifications
You must be signed in to change notification settings - Fork 63
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
Implications of assertion "accurately describe the data returned" (DataSchema) #2047
Comments
This is a bit underspecified indeed. I think that it should contain something like "it should describe as accurately as possible and resort to underdescribing when it is not possible to describe it accurately". I think some examples would be needed. Forcing everyone to describe it as accurately as possible (not that we can but anyways) can resort people in not specifying a data schema at all. |
I think the vague statement is coming from the situation when you have non-JSON / XML like structured data as payload and a precise JSON schema representation is not possible. In this case, it would be helpful if you had at least (accurate) high level indicators about the content of the data. E.g. a blob data you simply want to use |
Could we maybe turn this into a strict assertion for JSON data (that could be directly validated using the JSON Schema information) and define this more as a “policy” for non-JSON data (that could be turned into some kind of assertion via a corresponding “payload binding” document)? |
In w3c/wot-scripting-api#554 (comment) we discussed the consequences of some TD assertions.
Specifically the following assertion in 9.2 Data Schemas caught our attention.
We do have some concerns:
@relu91 @JKRhb @zolkis did I miss anything?
The text was updated successfully, but these errors were encountered: