Skip to content

Instantly share code, notes, and snippets.

@rhamiltonsf
Last active September 20, 2021 22:14
Show Gist options
  • Save rhamiltonsf/1cf8b3936a572e94b2eaf27be0836c86 to your computer and use it in GitHub Desktop.
Save rhamiltonsf/1cf8b3936a572e94b2eaf27be0836c86 to your computer and use it in GitHub Desktop.
[spring/spring-boot] requestBodies can accept object schemas if they are inline
openapi: 3.0.1
info:
title: Example API
version: '1.0'
paths:
/test:
post:
requestBody:
content:
application/json:
schema:
type: object
properties:
property:
type: string
responses:
'201':
description: ok
@rhamiltonsf
Copy link
Author

Specification created for openapi-generator #10435 which shows that requestBodies can have an object schema, so long as the requestBody is defined inline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment