Skip to content

Commit

Permalink
Remove IHAN validator (#32)
Browse files Browse the repository at this point in the history
* Remove IHAN validator

* Update certifi
  • Loading branch information
fbjorn authored Aug 9, 2023
1 parent 24554f8 commit ada9da4
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 481 deletions.
3 changes: 1 addition & 2 deletions openapi_to_fastapi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from openapi_to_fastapi.validator.core import BaseValidator, DefaultValidator

from .routes import SpecRouter
from .validator import ihan_standards

logger = logging.getLogger("openapi_to_fastapi_cli")
coloredlogs.install(logger=logger, fmt="%(message)s")
Expand Down Expand Up @@ -75,7 +74,7 @@ def validate_specs(path: Path, modules: List[str], extra_validators: List[str])


def _load_extra_validator_modules(modules: List[str]) -> list:
validator_modules = [ihan_standards]
validator_modules = []
for module_path in modules:
module_name = f"oas_models_{uuid.uuid4()}"
spec = importlib.util.spec_from_file_location(module_name, module_path)
Expand Down
4 changes: 2 additions & 2 deletions openapi_to_fastapi/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def client(app):


@pytest.fixture
def ihan_client(specs_root):
def definitions_client(specs_root):
app = FastAPI()
spec_router = SpecRouter(specs_root / "ihan")
spec_router = SpecRouter(specs_root / "definitions")
app.include_router(spec_router.to_fastapi_router())
return TestClient(app)
165 changes: 0 additions & 165 deletions openapi_to_fastapi/tests/data/pet_store/pet_store.json

This file was deleted.

161 changes: 0 additions & 161 deletions openapi_to_fastapi/tests/test_ihan_standards.py

This file was deleted.

Loading

0 comments on commit ada9da4

Please sign in to comment.