Skip to content

Commit e62b976

Browse files
committed
docs: add example for how to downgrade OpenAPI 3.1 to 3.0
1 parent 85c4b48 commit e62b976

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3857,6 +3857,8 @@ No, we don't currently.
38573857

38583858
OpenAPI 3.1 support is [awaiting upstream support](https://github.com/oapi-codegen/oapi-codegen/issues/373).
38593859

3860+
In the meantime, you could follow [steps from this blog post](https://www.jvt.me/posts/2025/05/04/oapi-codegen-trick-openapi-3-1/) to [use OpenAPI Overlay](#modifying-the-input-openapi-specification-with-openapi-overlay) to "downgrade" the OpenAPI 3.1 spec to OpenAPI 3.0.
3861+
38603862
### How does `oapi-codegen` handle `anyOf`, `allOf` and `oneOf`?
38613863

38623864
`oapi-codegen` supports `anyOf`, `allOf` and `oneOf` for generated code.

0 commit comments

Comments
 (0)