Allow objects in "allowedValues"
See original GitHub issueAllowing objects in allowedValues would greatly help form generation as it would provide a label for dropdowns and listboxes.
For instance:
role: {
type: String,
label: "Role",
allowedValues: {
admin: i18n('admin'),
moderator: i18n('moderator'),
...
}
}
Issue Analytics
- State:
- Created 9 years ago
- Comments:15
Top Results From Across the Web
ARM template allowed values for object - Microsoft Q&A
I want to deploy e.g. a resource group with specific tags. These tags are a parameter object. How can I assign allowedValues to...
Read more >Parameters - AWS CloudFormation
An array containing the list of values allowed for the parameter. ... to a parameter of type String , the parameter value must...
Read more >predicateForObjects(withDeviceProperty:allowedValues:)
A predicate that matches all objects created by a device whose specified property matches one of the allowed values. Discussion. Use this convenience...
Read more >Is there a way to declare "allowed values" for a property? #51
Let's take this as an example. Here, it appears by using enum we are specifying the allowed values... { "type": "object", "properties" ...
Read more >REST API for Oracle Identity Cloud Service - Define Allowed ...
Define Allowed Values. post. /admin/v1/AllowedValues ... AllowedValue schema. Before you specify an attribute-value ... Type: object. Allowed Values schema.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For schema validation, yes. For form generation, no. But you could of course define your options object in one place and pass
_.keys(optionsObject)
toallowedValues
.An initial implementation of autoform field defaults in the schema is now released. If it doesn’t meet all needs, you can submit additional specific issues and requests in the autoform repo.
https://github.com/aldeed/meteor-autoform/blob/master/CHANGELOG.md#0120