#1486·go-swagger

Tuple validation requires all items

Author: fredbiCreated Apr 18, 2018Updated Jun 28, 2026
Labelsbugfuture/maybevalidatormodeltuple

Problem statement

When generating a model with array defining a tuple, the generated validation code requires all items to be present in an instance of the tuple. But the JSON schema 4 spec states that tuple items are not required.

Environment

swagger version: master go version: 1.9.1 OS: