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

Empty response schema generates an exception "Unknown media type schema type" #1157

Open
cfxegbert opened this issue Nov 4, 2024 · 0 comments

Comments

@cfxegbert
Copy link

Describe the bug

"responses": {
  "400": {
    "description": "There was a problem with the data sent with the request.",
    "content": {
      "application/json": {},
      "application/xml": {}
    }
  }
}

Not having a schema on the returned content will generate an "Unknown media type schema type" exception. This is valid schema and many code first schema generators create this type of output.

Desktop (please complete the following information):

  • OS: macOS 10.13.7
  • Python Version: 3.10.15
  • openapi-python-client version 0.5.0
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