[data views] fields_for_wildcard - disable schema response validation (#159758)

## Summary

Response validation is failing when there are field conflicts. Disable
response validation until a complete schema can be created.

Problem was introduced in https://github.com/elastic/kibana/pull/158608
This commit is contained in:
Matthew Kime 2023-06-15 21:22:32 -05:00 committed by GitHub
parent f97868856d
commit 4a8bbd970a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ const fieldSubTypeSchema = schema.object({
nested: schema.maybe(schema.object({ path: schema.string() })),
});
// @ts-expect-error
const FieldDescriptorSchema = schema.object({
aggregatable: schema.boolean(),
name: schema.string(),
@ -97,6 +98,7 @@ const validate: FullValidationConfig<any, any, any> = {
// not available to get request
body: schema.maybe(schema.object({ index_filter: schema.any() })),
},
/*
response: {
200: {
body: schema.object({
@ -105,6 +107,7 @@ const validate: FullValidationConfig<any, any, any> = {
}),
},
},
*/
};
const handler: RequestHandler<{}, IQuery, IBody> = async (context, request, response) => {