Skip to content

Commit

Permalink
chore: add pydantic v1&v2 test (0b01001001#327)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Jul 18, 2023
1 parent 5c27305 commit 0d75453
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import_test:
test: import_test
pip install -U -e .[email,flask,quart,falcon,starlette]
pytest tests -vv -rs
pip install --force-reinstall 'pydantic[email]<2'
pytest tests -vv -rs

doc:
cd docs && make html
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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:
* Validate query, JSON data, response data with [pydantic](https://github.com/samuelcolvin/pydantic/) :wink: (we support both v1 and v2)
* Current support:
* Flask [demo](#flask)
* Quart [demo](#quart)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "spectree"
version = "1.1.5"
version = "1.2.0"
dynamic = []
description = "generate OpenAPI document and validate request&response with Python annotations."
readme = "README.md"
Expand Down

0 comments on commit 0d75453

Please sign in to comment.