Skip to content

Tom Yang codekitchen Sprint7 task1#673

Merged
greyli merged 3 commits intoapiflask:mainfrom
weidesh:tyang-CK-SPRINT7-TASK1
Sep 21, 2025
Merged

Tom Yang codekitchen Sprint7 task1#673
greyli merged 3 commits intoapiflask:mainfrom
weidesh:tyang-CK-SPRINT7-TASK1

Conversation

@weidesh
Copy link
Copy Markdown
Contributor

@weidesh weidesh commented Sep 20, 2025

With the Python version 3.8 all unit test works fine, but up Python 3.9 there is an extra 'additionalProperties': False within the rv.json['components']['schemas']['MyName'] and rv.json['components']['schemas']['CustomHTTPError'], so I use the if sys.version_info >= (3, 9) to assert with additionalProperties and else to assert w/o additionalProperties, which this will eliminate the inconsisten behavior between different Python Version

fixes #

Checklist:

  • [ X ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • [ X ] 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.
  • [ X ] Run pytest and tox, no tests failed.

@greyli greyli merged commit b2a2602 into apiflask:main Sep 21, 2025
17 checks passed
@greyli
Copy link
Copy Markdown
Member

greyli commented Sep 21, 2025

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.

2 participants