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

Wrong PDF rendering with basic OpenAPI description #83

Open
alban-b opened this issue Feb 24, 2021 · 2 comments
Open

Wrong PDF rendering with basic OpenAPI description #83

alban-b opened this issue Feb 24, 2021 · 2 comments

Comments

@alban-b
Copy link

alban-b commented Feb 24, 2021

Hi,

I tried to make a pdf rendering of a very simple openapi description, generated from the stoplight software, but the pdf is almost empty and I have no error.

is it possible to indicate me what's wrong? Thank you!

{
  "openapi": "3.0.0",
  "info": {
    "title": "Auth",
    "version": "1.0",
    "description": "Auth API",
    "contact": {
      "email": "contact@test.net"
    }
  },
  "tags": [
    {
      "name": "AA",
      "description": "Test"
    }
  ],
  "servers": [
    {
      "url": "localhost:300"
    }
  ],
  "paths": {
    "/users/authorizations/{jwt}": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "jwt",
          "in": "path",
          "description": "JWT Token",
          "required": true
        }
      ],
      "get": {
        "summary": "Get User Info by User ID",
        "tags": [],
        "responses": {
          "201": {
            "description": "Authorizations found",
            "content": {
              "application/json": {
                "schema": {
                  "description": "",
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "message"
                  ]
                },
                "examples": {}
              }
            }
          },
          "401": {
            "description": "Unauthorized (possibly invalid JWT)"
          },
          "404": {
            "description": "User or authorizations not found"
          }
        },
        "operationId": "get-users-auth",
        "description": "Retrieve user authorizations.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "",
                "type": "object",
                "properties": {
                  "alerts": {
                    "type": "object",
                    "required": [
                      "fullAccess"
                    ],
                    "properties": {
                      "fullAccess": {
                        "type": "boolean"
                      },
                      "allowedIds": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      }
                    }
                  },
                  "events": {
                    "type": "object",
                    "required": [
                      "fullAccess",
                      "allowedIds"
                    ],
                    "properties": {
                      "fullAccess": {
                        "type": "boolean"
                      },
                      "allowedIds": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "alerts",
                  "events"
                ]
              },
              "examples": {}
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

auth.pdf

@arpu
Copy link

arpu commented Apr 12, 2021

sample problem on testing this today any hint?

@arpu
Copy link

arpu commented Apr 12, 2021

found the Problem! you need to set the tags: [] !

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

2 participants