Skip to content

Instantly share code, notes, and snippets.

@KalleDK
Created November 2, 2023 15:04
Show Gist options
  • Save KalleDK/0f51b8d3963cfddf43d4ee65593b9849 to your computer and use it in GitHub Desktop.
Save KalleDK/0f51b8d3963cfddf43d4ee65593b9849 to your computer and use it in GitHub Desktop.
extattr.json
{
"$defs": {
"ExtAttrValue": {
"title": "Value",
"type": "string"
},
"ExtAttrEnum": {
"properties": {
"value": {
"$ref": "#/$defs/ExtAttrValue"
}
},
"required": [
"value"
],
"title": "ExtAttrEnum",
"type": "object"
}
},
"properties": {
"_ref": {
"title": " Ref",
"type": "string"
},
"type": {
"const": "ENUM",
"title": "Type"
},
"name": {
"title": "Name",
"type": "string"
},
"comment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Comment"
},
"default_value": {
"anyOf": [
{
"$ref": "#/$defs/ExtAttrValue"
},
{
"type": "null"
}
]
},
"flags": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Flags"
},
"list_values": {
"items": {
"$ref": "#/$defs/ExtAttrEnum"
},
"title": "List Values",
"type": "array"
}
},
"required": [
"type",
"name",
"default_value",
"list_values"
],
"title": "ExtAttrEnumDef",
"type": "object"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment