Closed alex88 closed 8 years ago
What did you end up doing to fix this?
@jamesmullenbach I haven't but I closed the issue since I wanted to clear my list of openend issues.. If you want I can reopen this but I doubt anyone would take care of
Just stumbled across this issue, making my api description exported via aglio rather useless. :-(
This works fine in apiary but as per above post fails in aglio. Can this be fixed?
Note: this is a hack, and should be documented in your build script or readme of the project
I ended up using sed
sed -i -- 's/"nullified"/null/g' ./index.html
So for:
+ Response 200 (application/json)
+ Attributes (object)
+ status: nullified (string, nullable)
In final html "nullified"
is changed to null
.
@alex88, @danielgtaylor I've encountered the same problem - Body json is specified in the source .md-file but for unknown reason it is ignored when rendering. Instead of the Body, only example or default values from Attributes description are used when rendering .md to .html.
Could you please reopen this issue? This seems to be a significant bug.
Thank you!
I'm facing the same problem after noticing my API examples are full of "Hello worlds". Just can't find a reason for such behaviour. Could you please fix it?
Thanks very much!
using DRAFTER_EXAMPLES
parameter solved this problem:
DRAFTER_EXAMPLES=true aglio -i apiary.apib
FYI - I clarified use of the DRAFTER_EXAMPLES=true (must be set in the environment) in this thread:
https://stackoverflow.com/questions/41986351/how-to-override-mson-sample-values/53771235#53771235
I've this response blueprint:
however aglio renders:
is it configurable?