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 is the schema the extraction will follow, in the caller's own 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

The schema the extraction will follow, in the caller's JSON Schema form: the input with any array limit stated in a description ('up to 5 ...') applied as maxItems. Null when the input was rejected.

warnings
SchemaError · object[]

Changes made so the schema fits what Extract runs, such as a format or pattern kept as guidance in the field's description. normalized_schema shows the result.