Skip to content

Instantly share code, notes, and snippets.

@bodograumann
Last active January 10, 2020 15:48
Show Gist options
  • Save bodograumann/0ec60e9b2b6d8824fba49fa74c2f88a9 to your computer and use it in GitHub Desktop.
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
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
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