Skip to main content

invalid-parameter-shape

Requires every array parameter schema to define items.

AttributeValue
CategoryParameters
MaturityPlatinum
Lenient–StrictWarning
Recommended–CompleteError

Intent

Without an item schema, consumers cannot know the array element shape and Specmatic must fall back to an empty schema.

See it fail

- in: query
name: status
schema:
type: array

Fix it

- in: query
name: status
schema:
type: array
items: { type: string }

Configure under profiles.<name>.rules.override.invalid-parameter-shape.

Nearby: array-parameter-serialization.