Skip to content

Fix the not-iterable exception occurred when directly returning a custom class#400

Merged
greyli merged 1 commit intoapiflask:mainfrom
tkzt:bugfix/non-dict-not-iterable
Feb 18, 2023
Merged

Fix the not-iterable exception occurred when directly returning a custom class#400
greyli merged 1 commit intoapiflask:mainfrom
tkzt:bugfix/non-dict-not-iterable

Conversation

@tkzt
Copy link
Copy Markdown
Contributor

@tkzt tkzt commented Feb 3, 2023

Fix the not-iterable exception occurred when a @app.output() decorated view function directly return a custom class.

fixes #384

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code docstring.
  • Add an entry in CHANGES.md summarizing the change and linking to the issue.
  • Add *Version changed* or *Version added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

@greyli greyli added this to the 1.2.2 milestone Feb 12, 2023
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 18, 2023

Deploy Preview for apiflask failed.

Name Link
🔨 Latest commit 6946637
🔍 Latest deploy log https://app.netlify.com/sites/apiflask/deploys/63f04fd6c0a0b40008df4e8d

@greyli greyli merged commit 96bf9b6 into apiflask:main Feb 18, 2023
@greyli
Copy link
Copy Markdown
Member

greyli commented Feb 18, 2023

Merged, thanks!

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

Successfully merging this pull request may close these issues.

Cannot return non-dictlike object from handler if BASE_RESPONSE_SCHEMA is set

2 participants