Openapi Schema Properties Define Number Minimum Error (Edit)

Require schema property number minimum.

Rule Definition

openapi-schema-properties-define-number-minimum-error.yaml
{ "openapi-schema-properties-define-number-minimum-error": {"description":"Require schema property number minimum.","message":"Schema Property Number Minimum","severity":"error","given":"$.components.schemas.*.properties.[?(@.type==\"number\")]","then":[{"field":"minimum","function":"defined"}]} }

Back to All of the Rules