You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Counterfact works fine without an OpenAPI description. It just won't generate code for you. You have to create JavaScript* files manually under the paths directory. The easiest way to implement is to supply an empty OpenAPI object if no file is given. In the CLI, a - can stand for the empty OpenAPI object.
npx counterfact - ./api
The - could become the default value for the OpenAPI file path argument. If you're happy for files to be in the default location (the current working directory), it could be run with no arguments at all.
npx counterfact
*Either JavaScript or TypeScript would work, but TypeScript without the automatically generated types would not be fun.
The text was updated successfully, but these errors were encountered:
Then you could just turn on proxy, start recording, and have it build out your files (if not your types). Just mentioning here to possibly bump up those archived feature requests for later discussion.
Counterfact works fine without an OpenAPI description. It just won't generate code for you. You have to create JavaScript* files manually under the
paths
directory. The easiest way to implement is to supply an empty OpenAPI object if no file is given. In the CLI, a-
can stand for the empty OpenAPI object.The
-
could become the default value for the OpenAPI file path argument. If you're happy for files to be in the default location (the current working directory), it could be run with no arguments at all.*Either JavaScript or TypeScript would work, but TypeScript without the automatically generated types would not be fun.
The text was updated successfully, but these errors were encountered: