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

Error when no servers found #141

Closed cjea closed 3 years ago

cjea commented 3 years ago

Fixes the swagger error of generating an empty list of server blocks when the --env option doesn't match any servers. Issue: https://github.com/LiveRamp/reslang/issues/120

$ ./reslang ~/code/reslang/models/servers --stdout --env JUNK
Reslang error:  no server found with environment "JUNK" (are you passing the correct value to --env?)
error Command failed with exit code 255.

This PR only addresses the swagger. I think asyncapi has the same problem, though the server blocks are handled a little differently

ops-github-DU4JOAWE commented 3 years ago

This change is Reviewable