16 lines
354 B
Python
16 lines
354 B
Python
"""Export the application operation allowlist for generated adapters."""
|
|||
|
|
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
from gewu.domain.operations import catalog_bytes
|
||
|
|
|
||
|
|
ROOT = Path(__file__).resolve().parents[1]
|
||
|
|
DESTINATION = ROOT / "schema" / "v1" / "catalog.json"
|
||
|
|
|
||
|
|
|
||
|
|
def main() -> None:
|
||
|
|
DESTINATION.write_bytes(catalog_bytes())
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|