apiaryio/snowcrash

Error parsing snake_case attribute content

Closed this issue · 1 comments

I'm trying to express the following response using response attributes:

{
  "status": "error",
  "error_message": "content_cant_be_blank"
}

And I'm trying to do this like so:

img

But the parser somehow thinks that the camel_case content of this is part of the name.

kylef commented

_ is a reserved character and thus it must be escaped.

This can be achieved via the following:

+ Response 422 (application/json)
    + Attributes
        + status: error
        + `error_message`: `content_cant_be_blank`