Skip to main content



This rule belongs to the openapi-v3-standards-validation ruleset and states that:

The property type in a Schema Object can have only of the following values: array, object, boolean, integer, number, string. Type null can also be used but only for OpenAPI 3.1.x documents. Other types are not allowed.

Maximum SeverityError
MessageSchema type is invalid.
Rule SystemSemantic
Broad CategorySchemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation data type type schema primitive complex object array

Suggested Fixes

  • Type names are compared in a case-sensitive manner.
  • Ensure that the schema type is not empty or null.
  • Remove any trailing or leading whitespace or newline characters from the type value.

For More Information