Skip to content

Commit a8ac004

Browse files
committed
expose geography in generate_schemas.py entrypoint
1 parent 1e75794 commit a8ac004

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

schema/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ This directory contains the templates and code that _generate_ the official JSON
77
At a command prompt within this `schema` directory run:
88

99
```bash
10-
python generate_schemas.py [--agency] [--policy] [--provider]
10+
python generate_schemas.py [--agency] [--geography] [--policy] [--provider]
1111
```
1212

13-
The optional flags `--agency`, `--policy`, and `--provider` can be used to specify which
13+
The optional flags `--agency`, `--geography`, `--policy`, and `--provider` can be used to specify which
1414
set of schemas to generate. The default is to generate all schemas.
1515

1616
## Updating Schemas

schema/generate_schemas.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,30 @@
22
Generate the JSON Schema documents for MDS endpoints.
33
44
USAGE:
5-
python generate_schemas.py [--agency] [--policy] [--provider]
5+
python generate_schemas.py [--agency] [--geography] [--policy] [--provider]
66
"""
77

88
import sys
99

1010
import agency
11+
import geography
1112
import policy
1213
import provider
1314

1415

1516
if __name__ == "__main__":
1617
if len(sys.argv) == 1:
1718
agency.write_schema_files()
19+
geography.write_schema_files()
1820
policy.write_schema_files()
1921
provider.write_schema_files()
2022
else:
2123
if "--agency" in sys.argv:
2224
agency.write_schema_files()
2325
sys.argv.remove("--agency")
26+
if "--geography" in sys.argv:
27+
geography.write_schema_files()
28+
sys.argv.remove("--geography")
2429
if "--policy" in sys.argv:
2530
policy.write_schema_files()
2631
sys.argv.remove("--policy")

0 commit comments

Comments
 (0)