-
Notifications
You must be signed in to change notification settings - Fork 13
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
$comment keyword in JSON format #99
Comments
question for @filip26: does this break the vlaidator? |
unknown elements/attributes should be ignored. I don't understand what value JSON-Schema:
|
yep. adding $comment is a way to support inline comments like this will be an optional element that could appear anywhere in the document. it'd be nice if the converter could retain the comments through various formats (XML, JSON, YAML), tho. as long as the propsed change is not breaking for any of your code. |
it does not break the code but what is the difference between a comment and a documentation/title? Does a comment really add a value? I understand that '$' notation is well-adopted by JSON schema but looks inconsistent with |
yes. i'll let @koriym weigh in here but my understanding was that this would be a JSON-only element. IOW, not change to XML and YAML since they each already support inline comments. IOW, in converters |
I found the following comments in https://github.com/alps-io/profiles/tree/master/xml repo. Most of them are comments for grouping by types (semantic/vocabulary or action/transition). <!-- actions -->
<!-- structures -->
<!-- data vocabulary -->
<!-- transitions -->
<!-- semantic descriptors -->
<!-- transition descriptors --> Those comments can't express in 'documentation/title'. |
JSON lacks comments as argued here. json-schema-org/json-schema-spec#197 |
That's interesting. Perhaps, we could explore |
Following up yesterday's meeting.
@koriym What is the benefit of |
Some may use
I understand this. You are right.
Only "ignore" is not enough for those who want to have more strict schema like me. I prefer |
we should wrap up discussion on this one soon. at this point i am interested in the following:
|
Make
$comment
a valid keyword in the ALPS JSON document by borrowing a notation from JSON Schema.See
The text was updated successfully, but these errors were encountered: