-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
$ git clone --depth=1 https://github.com/stripe/openapi stripe-openapi
$ python main.py
Where main.py
is:
#!/usr/bin/env python
from os import path
from json import load, dump
from jsonref import replace_refs
with open(path.join("stripe-openapi", "openapi", "spec3.sdk.json"), "rt") as f:
doc = load(f)
derefed = replace_refs(doc)
with open('derefed_spec3.sdk.json', 'wt') as f:
dump(f, derefed, indent=4)
I've got a new laptop with 32GB of RAM and a AMD Ryzen™ 9 6900HX with Radeon™ Graphics × 16, it is all used by this code and then SIGKILL is sent and game over. Ubuntu 22.10 on an SSD.
Metadata
Metadata
Assignees
Labels
No labels