2024-05-26 16:04:49 +00:00
|
|
|
import json
|
|
|
|
|
2024-05-20 17:34:27 +00:00
|
|
|
from clan_cli.api import API
|
|
|
|
|
|
|
|
|
|
|
|
def main() -> None:
|
2024-05-20 17:59:50 +00:00
|
|
|
schema = API.to_json_schema()
|
2024-05-20 17:34:27 +00:00
|
|
|
print(
|
2024-05-26 16:04:49 +00:00
|
|
|
f"""export const schema = {json.dumps(schema, indent=2)} as const;
|
2024-05-20 17:34:27 +00:00
|
|
|
"""
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|