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

fix: extend_schema_field with dict param and oas 3.1 #1147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codebutler
Copy link

@codebutler codebutler commented Jan 18, 2024

the dict was being mutated, so every subsequent use of the field would have more stuff appended to the schema

without a fix, the test fails with this diff:

+++ 
@@ -42,12 +42,15 @@
           readOnly: true
         field2:
           type:
-          - string
+          - - string
+            - 'null'
           - 'null'
           readOnly: true
         field3:
           type:
-          - string
+          - - - string
+              - 'null'
+            - 'null'
           - 'null'
           readOnly: true
       required:

the dict was being mutated, so every subsequent use of the field would have more stuff appended to the schema
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (aeca119) 98.63% compared to head (6f3a656) 98.58%.
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1147      +/-   ##
==========================================
- Coverage   98.63%   98.58%   -0.05%     
==========================================
  Files          71       72       +1     
  Lines        8711     8782      +71     
==========================================
+ Hits         8592     8658      +66     
- Misses        119      124       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

None yet

1 participant