Skip to content

Commit

Permalink
added entry in readme about extended schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
AGalabov committed Sep 15, 2022
1 parent 55f144c commit b0e8502
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ The list of all supported types as of now is:
- `ZodRecord`
- `ZodUnknown`

Extending an instance of `ZodObject` is also supported and results in an OpenApi definition with `allOf`

### Unsupported types

In case you try to create an OpenAPI schema from a zod schema that is not one of the aforementioned types then you'd receive an `UnknownZodTypeError`.
Expand Down

0 comments on commit b0e8502

Please sign in to comment.