openapi-metamodel icon indicating copy to clipboard operation
openapi-metamodel copied to clipboard

Add support for tuple items

Open hamzaed opened this issue 5 years ago • 0 comments

The current implementation of the metamodel uses items to set the type of the items of an array in a Schema definition.

However, even though it's not common in OpenAPI definitions, JSON schema allows the definition of tuples by setting the value of items to an array where each item is a Schema which corresponds to the type of each index.

The importation fails when `items``contains an array (tuple definition) instead of an object (array definition).

hamzaed avatar Feb 18 '20 11:02 hamzaed