Last active
September 20, 2021 22:14
-
-
Save rhamiltonsf/1cf8b3936a572e94b2eaf27be0836c86 to your computer and use it in GitHub Desktop.
[spring/spring-boot] requestBodies can accept object schemas if they are inline
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.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specification created for openapi-generator #10435 which shows that requestBodies can have an object schema, so long as the requestBody is defined inline.