Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi fixes #31

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/nldi/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ def openapi_json(self) -> Dict[str, Any]:
# This would require that we add methods here for each endpoint, which might be a good idea for other
# reasons as well. It would also give us consistent docstring format for the plugins.

OAS_SCHEMAS = util.load_yaml(pathlib.Path(__file__).parent / "schemas.yaml") # noqa: N806
OAS_PARAMETERS = util.load_yaml(pathlib.Path(__file__).parent / "parameters.yaml") # noqa: N806
OAS_RESPONSES = util.load_yaml(pathlib.Path(__file__).parent / "responses.yaml") # noqa: N806
OAS_SCHEMAS = util.load_yaml(pathlib.Path(__file__).parent / "openapi" / "schemas.yaml") # noqa: N806
OAS_PARAMETERS = util.load_yaml(pathlib.Path(__file__).parent / "openapi" / "parameters.yaml") # noqa: N806
OAS_RESPONSES = util.load_yaml(pathlib.Path(__file__).parent / "openapi" / "responses.yaml") # noqa: N806

RESPONSES = { # noqa: N806
"400": {"$ref": "#/components/responses/400"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ sourceid:
type: string

comid:
name: comid,
in: path,
name: comid
in: path
description: NHDPlus common identifier
required: True,
schema:
Expand Down
File renamed without changes.
File renamed without changes.
Loading