Skip to content

Commit

Permalink
[data views] fields_for_wildcard - disable schema response validation (
Browse files Browse the repository at this point in the history
…#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 #158608
  • Loading branch information
mattkime authored Jun 16, 2023
1 parent f978688 commit 4a8bbd9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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({
Expand All @@ -105,6 +107,7 @@ const validate: FullValidationConfig<any, any, any> = {
}),
},
},
*/
};

const handler: RequestHandler<{}, IQuery, IBody> = async (context, request, response) => {
Expand Down

0 comments on commit 4a8bbd9

Please sign in to comment.