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

server blocks: availability and documentation #118

Open j-q-arnold opened 4 years ago

j-q-arnold commented 4 years ago

This is issue concerns multiple aspects of 'server blocks'. (I probably should break this into multiple issues, but perhaps they can be addressed in a single release.)

njaczko commented 3 years ago

I communicated a bit with @j-q-arnold over slack, but the problem here was that servers blocks cannot have string descriptions (yet they can have comments). Individual servers, on the other hand, can have descriptions.

Example (Allowed):

// These are my servers
servers {
    /REST
        "This is the test server"
        server = "http://test-api.liveramp.com:{port:8080}"
    ...

Example (Not Allowed):

"These are my servers"
servers {
    /REST
        "This is the test server"
        server = "http://test-api.liveramp.com:{port:8080}"
    ...

I'm going to remove the bug label, but leave this open with the documentation and enhancement labels - Jim raised a bunch of good points.