Skip to content

Commit

Permalink
fix: Remove unsupported openapi spec validation
Browse files Browse the repository at this point in the history
The `apispec` package no longer provides validation.
  • Loading branch information
riddell-stan committed Apr 11, 2024
1 parent a9db025 commit 7f80151
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jsonschema>=4.10.0,<4.18.0 # newer versions break sphinxcontrib-openapi
sphinxcontrib-redoc~=1.6

# required for building OpenAPI spec
apispec[yaml,validation]~=4.0
apispec[yaml,validation]~=6.0
marshmallow~=3.10 # needed for apidocs
1 change: 0 additions & 1 deletion httpstan/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ def openapi_spec() -> apispec.APISpec:
spec.path(path="/v1/models/{model_id}/fits/{fit_id}", view=views.handle_get_fit)
spec.path(path="/v1/models/{model_id}/fits/{fit_id}", view=views.handle_delete_fit)
spec.path(path="/v1/operations/{operation_id}", view=views.handle_get_operation)
apispec.utils.validate_spec(spec)
return spec

0 comments on commit 7f80151

Please sign in to comment.