Skip to content

Commit

Permalink
Fixed typo, renamed function, rebased (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSander committed Mar 1, 2023
1 parent 7b18495 commit 07a4c27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pygeoapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
THISDIR = Path(__file__).parent.resolve()


def load_json_schema() -> dict:
def load_schema() -> dict:
""" Reads the JSON schema YAML file. """
schema_file = THISDIR / 'schemas' / 'config' / 'pygeoapi-config-0.x.yml'

Expand All @@ -56,7 +56,7 @@ def validate_config(instance_dict: dict) -> bool:
:returns: `bool` of validation
"""
jsonschema_validate(json.loads(to_json(instance_dict)), load_json_schema())
jsonschema_validate(json.loads(to_json(instance_dict)), load_schema())
return True


Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class APIRules(BaseModel):

@staticmethod
def create(**rules_config) -> 'APIRules':
""" Returns a new APIDesignRules instance for the current API version
""" Returns a new APIRules instance for the current API version
and configured rules. """
obj = {
k: v for k, v in rules_config.items() if k in APIRules.__fields__
Expand Down

0 comments on commit 07a4c27

Please sign in to comment.