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

Dev/kbroch/poc sourcemeta jsonschema tool #401

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 23 additions & 28 deletions schemas/cert_class_schema.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,43 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",

"type": "object",
"required": ["$schema", "kind", "name", "long_name", "introduction"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"const": "cert_class_schema.json#"
},
"$source": {
"$ref": "schema_defs.json#/$defs/$source"
},
"introduction": {
"description": "Asciidoc text containing the introduction prose for the class",
"type": "string"
},
"kind": {
"type": "string",
"const": "Processor CRD"
},
"name": {
"type": "string",
"pattern": "^[A-Z][a-zA-Z0-9_]*$",
"description": "The short name of the class, used as a database key"
},
"long_name": {
"type": "string",
"description": "Descriptive name of the class"
},
"processor_kind": {
"type": "string",
"enum": ["Generic Unprivileged", "Microcontroller", "Apps Processor"],
"description": "What kind of class is this?"
},
"introduction": {
"type": "string",
"description": "Asciidoc text containing the introduction prose for the class"
"description": "Descriptive name of the class",
"type": "string"
},
"mandatory_priv_modes": {
"description": "List of mandatory privilege modes for the class",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["M", "S", "U", "VS", "VU"]
},
"uniqueItems": true,
"minItems": 1,
"description": "List of mandatory privilege modes for the class"
}
},
"$source": {
"$ref": "schema_defs.json#/$defs/$source"
"name": {
"description": "The short name of the class, used as a database key",
"type": "string",
"pattern": "^[A-Z][a-zA-Z0-9_]*$"
},
"processor_kind": {
"description": "What kind of class is this?",
"enum": ["Generic Unprivileged", "Microcontroller", "Apps Processor"]
}
}
},
"additionalProperties": false
}
Loading
Loading