validate_schema
Check a schema document without storing it — with line, column and span for each error.
validate_schema(schema_document: str) -> SchemaValidatevalidate_schema(request: SchemaValidateRequest) -> SchemaValidateResponseParameters
ParameterTypeRequired
schema_documentstringrequiredThe document to check.
Returns
FieldTypePresence
namespacestringalwaysThe namespace it would land in.
would_be_versionintegeralwaysThe version it would take if uploaded.
validation_errorsSchemaError[]alwaysEmpty means valid. Each error carries code, message, line, column, length and severity — enough to underline the offending span in an editor.
Validation failures are not exceptions
This verb resolves with a populated validationErrors array rather than
throwing. Code that only wraps the call in a try/catch treats an invalid
schema as a successful one. Check the array.
See also
Was this page helpful?