Skip to content

Commit

Permalink
[ML] fix schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Feb 5, 2020
1 parent 11dfb5a commit 6c3510a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const dataVisualizerFieldStatsSchema = {
query: schema.any(),
fields: schema.arrayOf(schema.any()),
samplerShardSize: schema.number(),
timeFieldName: schema.string(),
earliest: schema.number(),
latest: schema.number(),
timeFieldName: schema.maybe(schema.string()),
earliest: schema.maybe(schema.number()),
latest: schema.maybe(schema.number()),
interval: schema.maybe(schema.string()),
maxExamples: schema.number(),
}),
Expand All @@ -31,8 +31,8 @@ export const dataVisualizerOverallStatsSchema = {
aggregatableFields: schema.arrayOf(schema.string()),
nonAggregatableFields: schema.arrayOf(schema.string()),
samplerShardSize: schema.number(),
timeFieldName: schema.string(),
earliest: schema.number(),
latest: schema.number(),
timeFieldName: schema.maybe(schema.string()),
earliest: schema.maybe(schema.number()),
latest: schema.maybe(schema.number()),
}),
};

0 comments on commit 6c3510a

Please sign in to comment.