reslang icon indicating copy to clipboard operation
reslang copied to clipboard

No errors and unexpected output when --env option is not recognized

Open njaczko opened this issue 5 years ago • 1 comments

If you pass the --env flag with a value that is not PROD, or specified in your Reslang servers block, Reslang does not error as it should. Instead, it just generates an empty servers block in the openapi spec.

For example,

reslang ~/code/reslang/models/servers --env JUNK

does not error and generates this in the OpenAPI spec.

servers: []

njaczko avatar Sep 28 '20 22:09 njaczko

Swagger gen addressed here: https://github.com/LiveRamp/reslang/pull/141

Will add one for asyncapi as well

cjea avatar Oct 14 '20 00:10 cjea