Skip to content

Commit

Permalink
Move schema-versions.json to src (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitblanc authored Jan 19, 2024
1 parent 067f1e9 commit 3d2ec9b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Generate both service configs and permissions for `default` tenant:
### Update JSON schemas

You can change the directory from where the ConfigGenerator reads its schemas via the `JSON_SCHEMAS_PATH` environment variable (default `/tmp/`).
You can change the versions of the schemas that the ConfigGenerator uses for verification inside [schema-versions.json](schemas/schema-versions.json).
You can change the versions of the schemas that the ConfigGenerator uses for verification inside [schema-versions.json](src/schema-versions.json).

Download JSON schemas:

Expand Down
1 change: 0 additions & 1 deletion src/config_generator/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ def __init__(self, config, logger, config_file_dir):
schema_versions_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'..',
'schemas',
'schema-versions.json'
)
try:
Expand Down
2 changes: 1 addition & 1 deletion src/download_json_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
schema_versions = {}
schema_versions_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
f'schemas/schema-versions.json'
f'schema-versions.json'
)
try:
with open(schema_versions_path, encoding='utf-8') as f:
Expand Down
File renamed without changes.

0 comments on commit 3d2ec9b

Please sign in to comment.