From b0e85022c33f6e28880e9d69272f1ca07e9e5e38 Mon Sep 17 00:00:00 2001 From: Alexandar Galabov Date: Thu, 15 Sep 2022 19:02:19 +0300 Subject: [PATCH] added entry in readme about extended schemas --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6413fa7..019d90f 100644 --- a/README.md +++ b/README.md @@ -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`.