mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] allow optional statusCode and error in generic error response schema (#193604)
Relates https://github.com/elastic/kibana/issues/184685 Make statusCode and error optional in genericErrorResponse, sometimes it seems to be missing. Saw this screenshot in another issue: 
This commit is contained in:
parent
486b16e56f
commit
4437337dd1
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ import { schema } from '@kbn/config-schema';
|
|||
export const genericErrorResponse = () =>
|
||||
schema.object(
|
||||
{
|
||||
statusCode: schema.number(),
|
||||
error: schema.string(),
|
||||
statusCode: schema.maybe(schema.number()),
|
||||
error: schema.maybe(schema.string()),
|
||||
message: schema.string(),
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue