mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[data views] REST API - get scripted field, fix response schema (#168776)
## Summary Response schema fixed. from field formatter response to scripted field. I suspect this slipped through since its not enforced aside from dev environment. Discovered and broken out from https://github.com/elastic/kibana/pull/161611
This commit is contained in:
parent
7cb153d4d7
commit
56c5ac95a3
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ import type {
|
|||
DataViewsServerPluginStartDependencies,
|
||||
} from '../../../types';
|
||||
import { INITIAL_REST_VERSION } from '../../../constants';
|
||||
import { serializedFieldFormatSchema } from '../../../../common/schemas';
|
||||
import { fieldSpecSchemaFields } from '../../../../common/schemas';
|
||||
import { FieldSpecRestResponse } from '../../route_types';
|
||||
|
||||
export const registerGetScriptedFieldRoute = (
|
||||
|
@ -49,7 +49,7 @@ export const registerGetScriptedFieldRoute = (
|
|||
response: {
|
||||
200: {
|
||||
body: schema.object({
|
||||
field: serializedFieldFormatSchema,
|
||||
field: schema.object(fieldSpecSchemaFields),
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue