Last active
September 20, 2021 22:16
-
-
Save rhamiltonsf/56b142ee74480fb93230b6808c015a27 to your computer and use it in GitHub Desktop.
[spring/spring-boot] This spec will generate code correctly
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: | |
$ref: '#/components/requestBodies/setupReq' | |
responses: | |
'201': | |
description: ok | |
components: | |
requestBodies: | |
setupReq: | |
content: | |
application/json: | |
schema: | |
type: string |
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 refs can be used for requestBodies, but only if the requestBody schema is not of type object.