Skip to content

Invalid example adoc generation from yaml file #46

@sureshdharisi

Description

@sureshdharisi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions