Skip to main content

unique-schema-types

Overview

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

If multiple types are listed in the Schema Object using the type property, each type name in this array/list must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate entry found for type name in the Schema Object type array.
CodeOPENAPI3STANDARDS_V341
TypeValidation
Rule SystemSemantic
Broad CategorySchemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation type json schema schema

Suggested Fixes

  • Remove duplicate type name entries from the Schema Object type list.
  • Type names are compared in a case-sensitive manner.

For More Information