Skip to main content

unique-schema-dependent-required-properties

Overview

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

Each property in a Schema Object dependentRequired definition must consist of a list of properties that are dependent on it to be considered as required. The items in this list must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate property name found in the list of dependent required properties.
CodeOPENAPI3STANDARDS_V351
TypeValidation
Rule SystemSemantic
Broad CategorySchemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation dependent required properties required json schema schema

Suggested Fixes

  • Remove duplicate property names from the list of dependent properties.
  • Property names are compared in a case-sensitive manner.

For More Information