Api-blueprint: Unable to escape underscore

Created on 7 Mar 2018  路  3Comments  路  Source: apiaryio/api-blueprint

Example

+ Request (application/json)
    + Attributes
        + api_key: `<API_KEY>` (string, required)

Gets parsed like this:
screenshot from 2018-03-07 12-20-19

(Dredd also reads it in the same way, so it is definitely the parser that is wrong)

Question

All 3 comments

You will need to escape the underscore, for example:

+ Request (application/json)
    + Attributes
        + `api_key`: `<API_KEY>` (string, required)

Ah, didn't realize that it was the first underscore that was causing the issue. Apiary should imo catch that as a semantic issue: "Attribute names that include underscores need to be escaped with backticks" or something along those lines.

I'm going to close this issue as it's tracked in https://github.com/apiaryio/api-blueprint/issues/210.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zatziky picture zatziky  路  4Comments

AlexKorovyansky picture AlexKorovyansky  路  4Comments

teja5429 picture teja5429  路  9Comments

bennettellis picture bennettellis  路  7Comments

mootpointer picture mootpointer  路  4Comments