Skip to content

0.21.1 (2024-06-15)

Compare
Choose a tag to compare
@dbanty dbanty released this 15 Jun 19:48
· 114 commits to main since this release
cb32c30

Features

Support request body refs

You can now define and reuse bodies via refs, with a document like this:

paths:
/something:
post:
requestBody:
"$ref": "#/components/requestBodies/SharedBody"
components:
requestBodies:
SharedBody:
content:
application/json:
schema:
type: string

Thanks to @kigawas and @supermihi for initial implementations and @RockyMM for the initial request.

Closes #633, closes #664, resolves #595.

Fixes

  • Indent of generated code for non-required lists. Thanks @sfowl! (#1050)
  • Parsing requestBody with $ref (#633)