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

How can Model represent a non-json schema for the swagger example? #585

Open
renjiandreamore opened this issue Dec 15, 2023 · 0 comments
Open
Labels
question Further information is requested

Comments

@renjiandreamore
Copy link

Ask a question
For example I have an API that will return a 'text/plain' type response, but when I use @api/namespace.response it only allow me to pass a Model instance into, and the model is actually a json-like(dict) thing, and in the swagger api I will see something like
{"response_key": "response_value"}, however my actually response is just a text, so there is no json-like response actually. How can I represent the example in the swagger doc?

@renjiandreamore renjiandreamore added the question Further information is requested label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant