Skip to content

Instantly share code, notes, and snippets.

@eak24
Created January 3, 2022 13:20
Show Gist options
  • Save eak24/07a09ac228dcd2f9ec0b957ddb44148b to your computer and use it in GitHub Desktop.
Save eak24/07a09ac228dcd2f9ec0b957ddb44148b to your computer and use it in GitHub Desktop.
openapi: 3.0.1
info:
title: Test additional properties with ref
version: '1.0'
servers:
- url: 'http://localhost:8000/'
paths:
/ping:
post:
operationId: ping
responses:
default:
description: default response
content:
application/json:
schema:
type: object
additionalProperties:
type: object
additionalProperties:
type: object
additionalProperties:
"$ref": "#/components/schemas/Person"
components:
schemas:
Person:
type: object
properties:
lastName:
type: string
firstName:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment