forked from clan/clan-core
16 lines
234 B
Python
16 lines
234 B
Python
import json
|
|
|
|
from clan_cli.api import API
|
|
|
|
|
|
def main() -> None:
|
|
schema = API.to_json_schema()
|
|
print(
|
|
f"""export const schema = {json.dumps(schema, indent=2)} as const;
|
|
"""
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|