Skip to content

Commit

Permalink
Safely serialize configuration JSON
Browse files Browse the repository at this point in the history
Co-Authored-By: Tom Kralidis <tomkralidis@gmail.com>
  • Loading branch information
webb-ben and tomkralidis committed Mar 27, 2024
1 parent 2abb943 commit 36feb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygeoapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_config(raw: bool = False) -> dict:
else:
CONFIG = yaml_load(fh)

return CONFIG
return json.loads(to_json(CONFIG))


def load_schema() -> dict:
Expand Down

0 comments on commit 36feb06

Please sign in to comment.