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

Add type annotations to models #1200

Merged
merged 9 commits into from
Oct 17, 2022
Merged

Add type annotations to models #1200

merged 9 commits into from
Oct 17, 2022

Conversation

therve
Copy link
Contributor

@therve therve commented Oct 7, 2022

This adds explicit parameters for optional paramaters and annotations for all of them, making sure oneOf are included.
This also fixes oneOf handling in API body parameters.

This adds explicit parameters for optional paramaters and annotations
for all of them, making sure oneOf are included.
This also fixes oneOf handling in API body parameters.
@therve therve requested a review from a team as a code owner October 7, 2022 12:23
@therve therve marked this pull request as draft October 17, 2022 16:38
@therve therve marked this pull request as ready for review October 17, 2022 16:38
@therve therve merged commit b1a7e8e into master Oct 17, 2022
@therve therve deleted the therve/model-typing branch October 17, 2022 19:22
github-actions bot pushed a commit that referenced this pull request Oct 17, 2022
* Add type annotations to models

This adds explicit parameters for optional paramaters and annotations
for all of them, making sure oneOf are included.
This also fixes oneOf handling in API body parameters.

* Remove positional arguments

* Remove the args

* Don't use oneOf object

* Push nullable everywhere

* pre-commit fixes

* Fix oneOf parameter import

* Black

Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> b1a7e8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants