Closed albinpoignot closed 8 years ago
Hi @albinpoignot,
I think this is a question regarding the API Blueprint language and not Aglio specifically. I think what you are looking for is using MSON in parameters, if that's true check out https://github.com/apiaryio/api-blueprint-rfcs/pull/3 the proposal on the API Blueprint language to be able to use MSON with the parameters section. It's already on the API Blueprint roadmap.
Hi @kylef.
You are perfectly right. I am sorry for the inconvenience :(
Anyway, great news about the RFC. I obviously didn't see it :) Looking forward to this feature in the real world :)
I will close this issue : as stated, it's an API Blueprint issue.
The URI Parameters section works perfectly well with an
enum
and allows to describe the default and possible values in theMembers
section.However, in my case, the possible values are exactly the same as in the response, which is formatted in MSON. It would be really great if I could avoid to maintain two separated lists.
An example is sometimes (everytime ?) better than an explication - it is simplified for clarity, by the way ;)
As you could see, the list in
Members
section and in theStatus
enum description is exactly the same (and will always be).Everything works perfectly as is, but I will always have to maintain two lists which are exactly the same.