opensearch-project / opensearch-py

Python Client for OpenSearch
https://opensearch.org/docs/latest/clients/python/
Apache License 2.0
359 stars 178 forks source link

Code generated using new version of OpenAPI specification #722

Closed saimedhi closed 7 months ago

saimedhi commented 7 months ago

Description

Code generated using new version of OpenAPI specification

Issues Resolved

Closes #636 Closes #474

Before reviewing this PR, please review PR #721. PR #721 contains only the changes made for the generator, without the generated code.

The failing tests have been addressed in https://github.com/opensearch-project/opensearch-api-specification/pull/246.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

dblock commented 7 months ago

One of the big changes here is that common query_params are repeated all over the place. I suppose we don't have a better idea to represent that? Maybe there can be a shared annotation like @common_query_params (can be a future improvement).