OpenAPI Info Description Script Tag Error (Edit)

Script tags MUST not be included in the description of an API, keeping descriptions to just the text that is needed, and relying on the rest of the OpenAPI to describe what is possible.

OpenAPIMetadataDefaultDocumentation

Rule Definition

openapi-info-description-script-error.yaml
{"openapi-info-description-script-error":{"description":"Script tags MUST not be included in the description of an API, keeping descriptions to just the text that is needed, and relying on the rest of the OpenAPI to describe what is possible.","message":"Info Description MUST NOT Have Script Tag","severity":"error","given":"$.info","then":{"field":"description","function":"pattern","functionOptions":{"notMatch":"^\\b(<script)\\b"}}}}

Back to All of the Rules