I am adding this as feedback, because I don't know if it is maybe integrated or I am overlooking something...
Let's assume I have a data file with a blogroll, and in that blogroll I want to add a field that demarks what type of link that item is: how do I implement some form of enum or select for that field? For instance ["person", "website", "feed"] or something along the lines and in frontmatter it shows either three radio boxed items in a line that I can select one, or a select field with three items (and their labels)?
But it doesn't seem that this is integrated. At least the docs are not talking about it and trying some forms of settings on JSON-"schema" values won't work.
I am adding this as feedback, because I don't know if it is maybe integrated or I am overlooking something...
Let's assume I have a data file with a blogroll, and in that blogroll I want to add a field that demarks what type of link that item is: how do I implement some form of enum or select for that field? For instance `["person", "website", "feed"]` or something along the lines and in frontmatter it shows either three radio boxed items in a line that I can select one, or a select field with three items (and their labels)?
In JSON schema we have enum:
```yaml
properties:
type:
type: string
enum:
- blog
- video
- music
- page
- documentation
```
But it doesn't seem that this is integrated. At least the docs are not talking about it and trying some forms of settings on JSON-"schema" values won't work.
<!-- github-sync-id:2559221188 -->
This is getting messy, sorry... I experimented around some more and have now this:
```json
"schema": {
"properties": {
"type": {
"title": "Type",
"type": "string",
"enum": ["blog", "podcast", "youtube"]
}
},
```
but it results in this:

The title attribute is part of the dropdown.
Also: The resulting json in the datafile is missing the type field (when selecting "Type" as well as one of the "enum" values):
```json
[
{
"link": "fgsdfsds",
"description": "sdf",
"name": "sdf"
}
]
```
<!-- github-comment-id:2385852345 -->
This came up again. It would really be quite nice to have a field where we can select (one or more items) from a pre-filled selection.
This came up again. It would really be quite nice to have a field where we can select (one or more items) from a pre-filled selection.
<!-- github-comment-id:2439165977 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I am adding this as feedback, because I don't know if it is maybe integrated or I am overlooking something...
Let's assume I have a data file with a blogroll, and in that blogroll I want to add a field that demarks what type of link that item is: how do I implement some form of enum or select for that field? For instance
["person", "website", "feed"]or something along the lines and in frontmatter it shows either three radio boxed items in a line that I can select one, or a select field with three items (and their labels)?In JSON schema we have enum:
But it doesn't seem that this is integrated. At least the docs are not talking about it and trying some forms of settings on JSON-"schema" values won't work.
This is getting messy, sorry... I experimented around some more and have now this:
but it results in this:
The title attribute is part of the dropdown.
Also: The resulting json in the datafile is missing the type field (when selecting "Type" as well as one of the "enum" values):
Complete config for that data type:
This came up again. It would really be quite nice to have a field where we can select (one or more items) from a pre-filled selection.
Implemented the change, let me know if this fixed it in the beta.
works perfect in the beta :) thank you!