Skip to content

Instantly share code, notes, and snippets.

@martin-mfg
Last active August 27, 2023 16:30
Show Gist options
  • Save martin-mfg/2829d5390bf638ce6cd27aea103a733a to your computer and use it in GitHub Desktop.
Save martin-mfg/2829d5390bf638ce6cd27aea103a733a to your computer and use it in GitHub Desktop.
swagger: "2.0"
info:
title: dummy
version: dummy
paths:
/property:
post:
consumes:
- application/x-www-form-urlencoded
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/OuterObject'
responses:
'200':
description: dummy
definitions:
InnerObject:
type: object
properties:
ghijklm:
type: string
OuterObject:
type: object
properties:
abcdef:
$ref: '#/definitions/InnerObject'
openapi: 3.0.1
info:
title: dummy
version: dummy
paths:
/property:
post:
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/OuterObject'
responses:
'200':
description: dummy
content:
application/json:
schema:
type: string
components:
schemas:
InnerObject:
type: object
properties:
ghijklm:
type: string
OuterObject:
type: object
properties:
abcdef:
$ref: '#/components/schemas/InnerObject'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment