Skip to content

Commit

Permalink
chore: update pydantic v2 usage in readme (0b01001001#331)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Jul 28, 2023
1 parent 0d75453 commit 666fb68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Yet another library to generate OpenAPI documents and validate requests & respon

* Less boilerplate code, only annotations, no need for YAML :sparkles:
* Generate API document with [Redoc UI](https://github.com/Redocly/redoc) or [Swagger UI](https://github.com/swagger-api/swagger-ui) :yum:
* Validate query, JSON data, response data with [pydantic](https://github.com/samuelcolvin/pydantic/) :wink: (we support both v1 and v2)
* Validate query, JSON data, response data with [pydantic](https://github.com/samuelcolvin/pydantic/) :wink:
* If you're using Pydantic V2, you will need to import the `BaseModel` from `pydantic.v1` to make it compatible
* Current support:
* Flask [demo](#flask)
* Quart [demo](#quart)
Expand Down

0 comments on commit 666fb68

Please sign in to comment.