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

PutIndexTemplateRequest and PutComponentTemplateRequest lack allow_auto_create field #571

Closed
ztyzbb opened this issue May 10, 2023 · 2 comments
Labels
Area: Specification Related to the API spec used to generate client code

Comments

@ztyzbb
Copy link

ztyzbb commented May 10, 2023

Description

Both PutIndexTemplateRequest and PutComponentTemplateRequest lacks allow_auto_create field.
Create or update component template API
Create or update index template API
Index template API's doc didn't list this field but it just works when you PUT it.
Hope can backport to 7.17, thank you!

@l-trotta l-trotta added the Area: Specification Related to the API spec used to generate client code label Mar 28, 2024
@l-trotta
Copy link
Contributor

Hello, thank you for reporting this! While it looks like PutComponentTemplateRequest was already fixed with this PR , PutIndexTemplateRequest is still missing allow_auto_create; I'll have to investigate this a bit more since it's missing from the documentation as well. If it's actually an accepted parameter then we'll fix the API specification and regenerate the java code from it. Thank you!

@l-trotta
Copy link
Contributor

So, after investigating it turns out there were some mistakes in the documentation, PutComponentTemplateRequest actually doesn't allow allow_auto_create, while PutIndexTemplateRequest does, and there are also other fields with similar mistakes. This specification PR fixes those mistakes for the clients, the docs will be fixed in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code
Projects
None yet
Development

No branches or pull requests

2 participants