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

Generation fails if the response entity is a top-level array #40

Open
spyros87 opened this issue Jan 25, 2018 · 1 comment
Open

Generation fails if the response entity is a top-level array #40

spyros87 opened this issue Jan 25, 2018 · 1 comment
Labels

Comments

@spyros87
Copy link

Hello there,

For a specific use case, a JSON response which is a top level array need to be returned.
Therefore, the path response definition looks as follows:

...
  200:
    description: ...
    schema:
      - $ref: "#/definitions/serviceResponse"
...
definitions:
  serviceResponse:
    type: "array"
    items:
      allOf:
         type: array
         items:
            allOf:
               - $ref: '#/definitions/specificEntity'

Such kind of structure is not able to get parsed to an asciidoc.

Thank you very much for your help
Spyros Papadopoulos

@RobWin
Copy link
Member

RobWin commented Feb 12, 2018

Hi, thx for your issue.
Would you like to contribute a fix? I'm too busy atm.

@RobWin RobWin added the bug label Feb 12, 2018
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

2 participants