Last active
January 10, 2020 15:48
-
-
Save bodograumann/0ec60e9b2b6d8824fba49fa74c2f88a9 to your computer and use it in GitHub Desktop.
OpenAPI specification to reproduce an error with arrays of an alias to an array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: '3.0.2' | |
info: | |
version: '0.1.0' | |
title: Array of array alias test | |
paths: | |
/zoos: | |
post: | |
responses: | |
201: | |
description: Successfully created | |
operationId: createZoo | |
requestBody: | |
required: true | |
content: | |
application/json: | |
schema: | |
$ref: ! '#/components/schemas/Zoo' | |
components: | |
schemas: | |
Zoo: | |
type: object | |
properties: | |
enclosures: | |
items: | |
$ref: ! '#/components/schemas/Enclosure' | |
type: array | |
Enclosure: | |
items: | |
type: string | |
type: array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: '3.0.2' | |
info: | |
version: '0.1.0' | |
title: Array of array alias test | |
paths: | |
/zoos: | |
post: | |
responses: | |
201: | |
description: Successfully created | |
operationId: createZoo | |
requestBody: | |
required: true | |
content: | |
application/json: | |
schema: | |
$ref: ! '#/components/schemas/Zoo' | |
components: | |
schemas: | |
Zoo: | |
type: object | |
properties: | |
enclosures: | |
items: | |
items: | |
type: string | |
type: array | |
type: array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment