Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.2 KiB

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "enum-descriptor.schema.json",
"title": "EnumDescriptor",
"description": "Describes an enum definition for use in entity properties",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Unique name for the enum",
"minLength": 1
},
"values": {
"type": "array",
"description": "List of enum values",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Display name of the enum value"
},
"value": {
"type": "integer",
"description": "Integer value (auto-assigned if omitted)"
}
},
"required": [
"name"
]
},
"minItems": 1
}
},
"required": [
"name",
"values"
],
"additionalProperties": false
}