-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Underscores in attribute names #224
Labels
Comments
Hey, If you read the MSON spec, you can see that _ is a reserved character. Please use backticks to escape the whole word. Here is an example: + `some_thing`: `an_example_thing` Please note that there is an UX improvement planned at #210 |
Guys we can do this: + Parameters
+ `grant_type`: `refresh_token` (string, required) - Tipo de concessão Works great! |
Seems not really. If both parameter and value have underscores, JSON is being rendered incorrectly. Like
|
Yes, in that case, you need to surround |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If an underscore is both in an
Attribute
name and its example value, the parser treats the whole line as the attribute name with a null value.For example this blueprint:
Parsed by Drafter results in this:
Similarly, this is mis-parsed by Apiary, and is syntax highlighted incorrectly.
The text was updated successfully, but these errors were encountered: