From cb92b3e88a7bc8f720f7f7729b2cebdf55453da1 Mon Sep 17 00:00:00 2001 From: huangsong Date: Mon, 11 Oct 2021 13:41:42 +0800 Subject: [PATCH] update --- CHANGELOG.rst | 4 ++++ pyproject.toml | 2 +- schema_validator/extension.py | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8ec4eb4..e9894ba 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,7 @@ +0.1.15 2021-10-11 +----------------- +* ignore some endpoints + 0.1.12 2021-09-29 ----------------- * the default response schema diff --git a/pyproject.toml b/pyproject.toml index 8f2fbbc..09cb50e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "schema_validator" -version = "0.1.14" +version = "0.1.15" description = "A flask extension to provide schema validation with pydantic." authors = ["hs "] classifiers = [ diff --git a/schema_validator/extension.py b/schema_validator/extension.py index 104164b..60d5f8e 100644 --- a/schema_validator/extension.py +++ b/schema_validator/extension.py @@ -154,7 +154,8 @@ def _build_openapi_schema( for rule in app.url_map.iter_rules(): if rule.endpoint in [ - "static", "openapi", "swagger_ui" + "static", "openapi", "swagger_ui", + "swagger_ui_tag", "openapi_tag" ]: continue