-
Notifications
You must be signed in to change notification settings - Fork 71
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
Input field that is an enumerated value #36
Comments
There has been some discussion around this as it relates to radio and checkbox inputs. The select element has similar semantics. My suggestion would be to start by using radio/checkbox. However, I'm not sure we came to any conclusion on what that syntax should look like. I've certainly used it before, but in a non-standard way (as Siren doesn't currently specify what it should look like). Reference: |
I was discussing this in #rest on freenode today: http://irclog.greptilian.com/rest/2015-02-07 Right now our API returns this if you try to create a dataset with "junk" for a subject: {"status":"ERROR","message":"Error parsing datasetVersion: Value 'junk' does not exist in type 'subject'"} But I'd love to communicate the possible values for "subject" ("Chemistry", "Engineering", "Physics", and the rest of the controlled vocabulary) ahead of time. |
@kevinswiber - I was wondering what's the best way to go about representing an action with a field that would have a list of accepted values that in HTML could be represented by a select element.
The text was updated successfully, but these errors were encountered: