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

Invalid example adoc generation from yaml file #46

Open
sureshdharisi opened this issue Apr 4, 2018 · 0 comments
Open

Invalid example adoc generation from yaml file #46

sureshdharisi opened this issue Apr 4, 2018 · 0 comments

Comments

@sureshdharisi
Copy link

sureshdharisi commented Apr 4, 2018

I am facing issue while rendering examples for response code:

Here is my code in yaml file:

examples:
Invalid_Auth_Token:
success: false
errors:
- code: CS000
message: Invalid authorization token
warnings: null

It is rendering like in html:

{
"Invalid_Auth_Token" : {
"success" : false,
"errors" : [ {
"code" : "CS000",
"message" : "Invalid authorization token"
} ],
"warnings" : null
}
}

I want the response like :

Invalid_Auth_Token
{
"success" : false,
"errors" : [ {
"code" : "CS000",
"message" : "Invalid authorization token"
} ],
"warnings" : null
}

How can I get this.

I am using
swagger2markup-maven-plugin-1.3.4 to generate asciidocs

asciidoctor-maven-plugin to generate html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant