Skip to content
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

Open
danielgsims opened this issue Jun 1, 2014 · 2 comments
Open

Input field that is an enumerated value #36

danielgsims opened this issue Jun 1, 2014 · 2 comments

Comments

@danielgsims
Copy link

@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.

@kevinswiber
Copy link
Owner

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:

@pdurbin
Copy link

pdurbin commented Feb 7, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants