Skip to content

invalid-schema

Id
@typespec/openapi3/invalid-schema

This diagnostic is issued when a schema is invalid according to the OpenAPI v3 specification.

Review your TypeSpec definitions to ensure they map to valid OpenAPI schemas. For example, an invalid format on a numeric property produces this diagnostic; use a valid format such as int32 or int64.