Openapi Request Body Schema Properties Array Maxitems Error (Edit)

Require request body schema property array maxItems.

Rule Definition

openapi-request-body-schema-properties-array-maxitems-error.yaml
{ "openapi-request-body-schema-properties-array-maxitems-error": {"description":"Require request body schema property array maxItems.","message":"Request Body Schema Property Array MaxItems","severity":"error","given":"$.paths.*.*.requestBody.content.*.schema.properties.[?(@.type==\"array\")]","then":[{"field":"maxItems","function":"truthy"}]} }

Back to All of the Rules