Openapi Schema Properties Allowed Integer Format Error (Edit)

Requires integer properties to have a format of int32 or int64.

Rule Definition

openapi-schema-properties-allowed-integer-format-error.yaml
{ "openapi-schema-properties-allowed-integer-format-error": {"description":"Requires integer properties to have a format of int32 or int64.","message":"Type format should be be int32 or int64.","severity":"hint","given":"$.components.schemas.*.properties.[?(@.type==\"integer\")]","then":{"field":"format","function":"enumeration","functionOptions":{"values":["int32","int64"]}}} }

Back to All of the Rules