Skip to content
Start here

Schemas

List all uploaded schemas
client.SchemaValidation.Schemas.List(ctx, params) (*V4PagePaginationArray[PublicSchema], error)
GET/zones/{zone_id}/schema_validation/schemas
Get details of a schema
client.SchemaValidation.Schemas.Get(ctx, schemaID, params) (*PublicSchema, error)
GET/zones/{zone_id}/schema_validation/schemas/{schema_id}
Upload a schema
client.SchemaValidation.Schemas.New(ctx, params) (*PublicSchema, error)
POST/zones/{zone_id}/schema_validation/schemas
Edit details of a schema to enable validation
client.SchemaValidation.Schemas.Edit(ctx, schemaID, params) (*PublicSchema, error)
PATCH/zones/{zone_id}/schema_validation/schemas/{schema_id}
Delete a schema
client.SchemaValidation.Schemas.Delete(ctx, schemaID, body) (*SchemaDeleteResponse, error)
DELETE/zones/{zone_id}/schema_validation/schemas/{schema_id}
ModelsExpand Collapse
type PublicSchema struct{…}

A schema used in schema validation

CreatedAt Time
formatdate-time
Kind PublicSchemaKind

The kind of the schema

Name string

A human-readable name for the schema

SchemaID string

A unique identifier of this schema

maxLength36
minLength36
formatuuid
Source string

The raw schema, e.g., the OpenAPI schema, either as JSON or YAML

ValidationEnabled booloptional

An indicator if this schema is enabled