Skip to main content
POST
validate_extract_schema

Authorizations

X-API-Key
string
header
required

Body

application/json

Body for POST /v1/extract/schema-validation.

Same mutual-exclusion rule as :class:ExtractRequest: exactly one of schema_id or schema must be present. Optional schema_version pins a registry version when resolving schema_id.

schema
Schema · object | null

Inline JSON Schema to validate. Mutually exclusive with schema_id.

schema_id
string | null

Catalog schema family id (sch_...). Mutually exclusive with an inline schema.

schema_version
integer | null

Pin a published catalog version. Omit with schema_id to use the latest version.

Required range: x >= 1

Response

Successful Response

Result of POST /v1/extract/schema-validation.

On a valid schema, valid=True and normalized_schema carries the compiled form. On an invalid schema, valid=False and errors lists every violation found — the whole list, not just the first.

valid
boolean
required

True when the schema can be used as an extract schema.

errors
SchemaError · object[]

Every validation violation found. Empty when valid is true.

normalized_schema
Normalized Schema · object | null

Compiled schema when valid is true. Null when the input was rejected.