Closed C3nE3s closed 1 year ago
@TattdCodeMonkey @delvedor @leemthompo I know this is really low-hanging fruit, but just bumping the above PR, unless you see this as a breaking change. Thanks in advance.
@ricokareem sorry for the late response.
This client is generated from an OpenAPI spec and it appears this type is not being generated correctly based on that spec. I will investigate that and see if I can resolve this in the next release.
🐛 Bug Report
The provided typescript types for the schema property in the params object for
client.app.putSchema()
do not match the example provided in the documentation.To Reproduce
Expected behavior
The provided type for the param property schema is as follows:
This requires nested object structure while the documentation demonstrates a flat object. I assume this typing is off, but if not, I would expect the example to reflect why the schema object shape is something other than a
Record<string,unknown>
@elastic/enterprise-search
version: 8.6.0