Openapi Schema Properties Allowed Number Format Error (Edit)

Require schema property number formats.

Rule Definition

openapi-schema-properties-allowed-number-format-error.yaml
{ "openapi-schema-properties-allowed-number-format-error": {"description":"Require schema property number formats.","message":"Schema Property Number Formats","severity":"hint","given":"$.components.schemas.*.properties.[?(@.type==\"number\")]","then":{"field":"format","function":"enumeration","functionOptions":{"values":["decimal32","decimal64","float","double","decimal128"]}}} }

Back to All of the Rules