Skip to content
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

Hyphens on example of string parameters cannot be escaped. #342

Closed
djansyle opened this issue Nov 16, 2017 · 2 comments
Closed

Hyphens on example of string parameters cannot be escaped. #342

djansyle opened this issue Nov 16, 2017 · 2 comments
Labels

Comments

@djansyle
Copy link

Consider this situation.

  • Parameters
    • lastId: d26e615d-7de0-44e6-83e0-7b6937ddef33 (optional, string) - about lastId

This is how it's being rendered.
screen shot 2017-11-16 at 9 28 46 am

It only take the words after the first hyphen.

@JoeNg93
Copy link

JoeNg93 commented Jun 2, 2019

Hi, not sure if you found the solution already but enclosing the value inside `` will work, example:

lastId: `d26e615d-7de0-44e6-83e0-7b6937ddef33` (optional, string) - about lastId

@Gasol
Copy link
Collaborator

Gasol commented Jun 3, 2019

According to MSON spec, The hyphens is a reserved character, Please use backtick to escape the whole value.

Related issues:
apiaryio/api-blueprint#224
apiaryio/api-blueprint#248
apiaryio/drafter#697 (comment)

@Gasol Gasol added the question label Jun 3, 2019
@Gasol Gasol closed this as completed Jun 5, 2019
@Gasol Gasol mentioned this issue Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants