apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.64k stars 2.14k forks source link

Underscores in Query and Parameters not working #281

Closed claravanstaden closed 8 years ago

claravanstaden commented 8 years ago

Hi!

I've got an issue with fields with underscores in the query and parameters list. I had a look at the other tickets related to this: #202, #224, #255 but the fixes suggested there (field_name) does not seem to work in this case.

My text:

apiarybug1

The error is: Parameter 'transaction_id : Filter on the... ' not specified...

When I add the back ticks to both the query parameters and parameter list, the parameter list entry gets another error:

apiarybug2

(The back ticks are very small on the screen shot - sorry about that.)

So neither way is working right now. Am I doing something wrong? I'd appreciate help.

pksunkara commented 8 years ago

Hey @Clar64, you are right in that you should be escaping the parameter name using backticks. But we have a small bug relating to this as documented at https://github.com/apiaryio/drafter/issues/123. Please follow the bug there. Thanks.

kamihouse commented 5 years ago

Guys we can do this:

+ Parameters
     + `grant_type`: `refresh_token` (string, required) - Tipo de concessão

Works great!