Require a string name and boolean active flag.
Section: Schema basics
Basic object schema
json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": { "type": "string" },
"active": { "type": "boolean" }
},
"required": ["name", "active"],
"additionalProperties": false
}Explanation
A good baseline for validating a small payload shape.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Schema basics