Skip to main content
POST
Validate a schema config
This endpoint validates the frozen public schema config contract, schemaConfigVersion: "v1". The schema payload itself must use formatVersion: 1. Synthbrew may add optional fields, enum values, generation settings, and metadata fields to v1 without a new version. Synthbrew will not remove fields, rename fields, change existing meanings, or make optional fields required without introducing a new contract version.

Authorizations

x-api-key
string
header
required

Team API key created under /api/api-keys. Prefix: sb_api_.

Body

application/json
schema
object
required

Declarative schema config used by schema versions. This is the v1 public contract when paired with schemaConfigVersion="v1" and formatVersion=1.

schemaConfigVersion
enum<string>
default:v1

Frozen public schema config contract version.

Available options:
v1

Response

Validation result

schemaConfigVersion
enum<string>
required
Available options:
v1
valid
boolean
required
errors
object[]
required
suggestions
string[]
required
schema
object

Declarative schema config used by schema versions. This is the v1 public contract when paired with schemaConfigVersion="v1" and formatVersion=1.