fastapi_client
fastapi_client copied to clipboard
Generate step hangs
After running the command on macos
./scripts/generate.sh \
-i https://raw.githubusercontent.com/alpacahq/bkdocs/master/assets/openapi.yaml \
-p client \
-o generated \
-n api.services.alpaca.broker.client
I get the output
Storing intermediate outputs in /Users/brapaport/udon/fastapi_client/tmp.BUD4aF2bG; it will be removed if generation is successful
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
But it appears to hang forever.
M1 Mac, you might need to edit scripts/util/openapi-generate.sh to account for ARM running X86 docker image. I know this issue from something else, dont have M1 to test myself.
@br-allstreet I encountered the same error and found that changing the image tage to latest in scripts/util/openapi-generate.sh fixes it. I think Docker should pick the correct platform image automatically if available, so my guess is that some problem in openapi-generator-cli was fixed in between versions.