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

Support new mechanism of defining deprecated enum variants in OpenAPI #1198

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Sep 17, 2024

Description

Support new mechanism of defining deprecated enum variants in OpenAPI

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.

reta
reta previously approved these changes Sep 17, 2024
@reta
Copy link
Collaborator

reta commented Sep 17, 2024

Seems like needs

  Run './gradlew :java-codegen:spotlessApply' to fix these violations.

Signed-off-by: Thomas Farr <[email protected]>
@Xtansia Xtansia merged commit 432919c into opensearch-project:main Sep 17, 2024
59 checks passed
@Xtansia Xtansia deleted the feat/code-gen/enums-oneOf branch September 17, 2024 21:05
Xtansia added a commit to Xtansia/opensearch-java that referenced this pull request Sep 23, 2024
…opensearch-project#1198)

* Support new mechanism of defining deprecated enum variants in OpenAPI

Signed-off-by: Thomas Farr <[email protected]>

* Spotless

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
(cherry picked from commit 432919c)
Xtansia added a commit that referenced this pull request Sep 23, 2024
…ecification (2024-09-23) (#1113) (#1205)

* Re-generate client code using latest OpenSearch API specification (2024-09-23) (#1113)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 230a92c)

* Regenerate tasks namespace (#1187)

* Fix codegen integer handling

Signed-off-by: Thomas Farr <[email protected]>

* Add failing tests

Signed-off-by: Thomas Farr <[email protected]>

* Begin re-generating `tasks.ListRequest` and `TaskExecutingNode`

renaming `State` to `TaskInfo`

Signed-off-by: Thomas Farr <[email protected]>

* Simplify client request methods

Signed-off-by: Thomas Farr <[email protected]>

* Re-generate _types.Retries

Signed-off-by: Thomas Farr <[email protected]>

* Handle types that are used in both abstract and concrete contexts

Signed-off-by: Thomas Farr <[email protected]>

* Re-generate tasks.ListResponse

Signed-off-by: Thomas Farr <[email protected]>

* Regenerate tasks.cancel

Signed-off-by: Thomas Farr <[email protected]>

* Regenerate tasks.get

Signed-off-by: Thomas Farr <[email protected]>

* spotless

Signed-off-by: Thomas Farr <[email protected]>

* Fixes

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
(cherry picked from commit cb89246)

* Support new mechanism of defining deprecated enum variants in OpenAPI (#1198)

* Support new mechanism of defining deprecated enum variants in OpenAPI

Signed-off-by: Thomas Farr <[email protected]>

* Spotless

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
(cherry picked from commit 432919c)

* Ensure codegen uptodate

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
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