CreateSchemaReq
Request body for creating a schema. Carries the schema's identity (metadata) and content (spec).
- metadataType: objectrequired
The resource's identity and human-facing labels. Shared shape across all five resource kinds (blueprints, templates, schemas, assets, functions). The pair
(key, version)is the canonical handle for any resource within a namespace.- keyType: string
Pattern: ^[a-z][a-z0-9]*(_[a-z0-9]+)*$requiredCaller-supplied identifier, unique within the namespace per kind. Stable across versions — a blueprint's
keydoesn't change when you publish a new version. Snake_case; must start with a lowercase letter. - nameType: stringmax length:200required
Human-readable display name shown in Studio, list responses, and audit trails (max 200 chars).
- versionType: stringrequired
Either
draft(editable; only one draft per key at a time) or a semver like1.2.0(immutable once published). On create you choose: passdraftto iterate, or a semver to publish directly. - descriptionType: stringmax length:1000
Optional longer-form description. Helps both humans and AI assistants pick the right resource when browsing the catalog (max 1000 chars).
- labelsType: object
Arbitrary key/value tags for categorization and filtering — e.g.
{ "team": "people-ops", "env": "prod" }. Filterable on list endpoints via?labels[key]=value.
- specType: objectrequired
The schema's content. SignStack schemas wrap a JSON Schema definition with versioning, identity, and lifecycle on top.
jsonSchemaDraftdeclares which JSON Schema specification draft the body conforms to.schemaDefinitionis the raw JSON Schema body (properties, types, constraints, refs).
Used by blueprint/template
inputsto declare the shape of entity data the caller must supply.- jsonType: stringenum
Schema Draft requiredWhich JSON Schema specification draft the
schemaDefinitionbody conforms to. Newer drafts have richer features; older drafts are widely supported.values- 2020
-12 - 2019
-09 - draft
-07 - draft
-06 - draft
-04
- schemaType: object
Definition requiredThe JSON Schema body — properties, types, validation constraints, refs. Validated against the declared
jsonSchemaDrafton every write.
- apiType: string
Version Optional API version of the resource shape. Defaults to the current spec version.
