LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

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

Open njaczko opened 4 years ago

njaczko commented 4 years ago

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: []
cjea commented 3 years ago

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

Will add one for asyncapi as well