-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add boolean isSecret metadata attribute? #249
Comments
just had an interesting thought; this attribute along with "default" are somewhat useless depending on use case. If the schema is being used for object validation they don't apply; if the schema is being used for object creation or presentation (such as form display) they do apply. |
Can you please provide a description and use case?
…On Feb 11, 2017 14:18, "Chris Dostert" ***@***.***> wrote:
just had an interesting though; this attribute along with "default" are
somewhat useless depending on use case.
If the schema is being used for object validation they don't apply; if the
schema is being used for object creation or presentation (such as form
display) they do apply.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#249 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAatDWAn4BX5VyFHKN82AZNq2q7lAaY4ks5rbiWLgaJpZM4L-Rgv>
.
|
One example use case is in the swagger spec. possible description: |
@chrisdostert if this is primarily presentation-oriented (hiding the characters of the string) then I think it would belong with #67 JSON UI Schema. Another possible use would be in hyper-schema to indicate that an I'd probably lean towards putting this in the proposed UI Schema vocabulary. As for |
I've warmed to this proposal given how we've reorganized the annotation keywords during this draft. I'd probably call it This keyword, in a hyper-schema context, would generally mean that while it is usable in requests, it would never be present in responses. That, plus the UI usage, provides use cases in two separate vocabularies, which I think is a good way to answer the question, "is this useful?" |
Merged #433 adding |
It would be fantastic to have an optional "isSecret" metadata attribute similar to "description" and "title", which was a boolean.
The intent for the instance of that schema would then be captured by the schema and consumers of said schema could then handle this in their own way.
The text was updated successfully, but these errors were encountered: