Skip to main content

password-schema-format-with-string-type

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The password format is only applicable to schemas with the type set to string. It seems that the password format has been used with an incompatible schema type.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageThe format password is not applicable to the given schema type.
CodeOPENAPI3APIMATIC_L677
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting password schema type format string

Suggested Fixes

  • Ensure that the schema type is set to string for compatibility with the password format.
  • If the schema represents a different data type, consider using a compatible format or removing the password format.

For More Information