readmeio/api

Add identifier as a cli parameter

Closed this issue · 1 comments

tg44 commented

extendable code in the codebase

my use-case

Some of the openapi docs uploaded to readme.io are not consumable by default. So it would be nice to download a json definition as is, and manually fix the problems, and regenerate them time-to-time supporting the dev process more.

what I tried

I wrote a command rimraf ./.api && npx api install -l ts ./files/fixed-opensea-api.json which is almost good. The problem with it that I need to type "opensea" every time I run this command.

expected behaviour

rimraf ./.api && npx api install -l ts -i opensea --install-missing ./files/fixed-opensea-api.json would generate the types without any user interactions.

Probably this part should be skipped too with a flag.

With v6.1.0 we now have an --identifier option in the CLI.