Skip to content

feat(parser): Allow references to non-object, non-enum types [#371][#418] #425

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

Merged
merged 5 commits into from
May 13, 2021

Conversation

dbanty
Copy link
Collaborator

@dbanty dbanty commented May 13, 2021

Adapted from #418 to merge in changes on main and simplify new e2e test. Fixes #371

@codecov
Copy link

codecov bot commented May 13, 2021

Codecov Report

Merging #425 (712fed1) into main (fddf68a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #425   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           47        47           
  Lines         1551      1548    -3     
=========================================
- Hits          1551      1548    -3     
Impacted Files Coverage Δ
openapi_python_client/parser/properties/schemas.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fddf68a...712fed1. Read the comment docs.

@dbanty dbanty merged commit 79acbf8 into main May 13, 2021
@dbanty dbanty deleted the fix/parser-reference-type-resolution branch May 13, 2021 01:02
@dbanty dbanty added this to the Next milestone May 13, 2021
p1-ra pushed a commit to P1sec/openapi-python-client that referenced this pull request May 14, 2021
…-generators#371][openapi-generators#418][openapi-generators#425]. Thanks @p1-ra!

* parser / properties / do not restrict reference pointer type to `enum` or `object`

* e2e / update `openapi.json` and golden-record

* tpl / model / add missing typing import: `Tuple,Optional,BinaryIO,TextIO`

* test: Make big ref test model properties required to lessen generated code

Co-authored-by: Nementon <[email protected]>
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.

Support references to non-object types
2 participants