Skip to content

Commit

Permalink
[Discover] Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Feb 8, 2024
1 parent a90b028 commit 0e922c2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/plugins/saved_search_so/server/saved_objects/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,14 @@ const SCHEMA_SEARCH_BASE = {

export const SCHEMA_SEARCH_V8_8_0 = schema.object(SCHEMA_SEARCH_BASE);

const V8_12_0 = {
...SCHEMA_SEARCH_BASE,
export const SCHEMA_SEARCH_V8_12_0 = SCHEMA_SEARCH_V8_8_0.extends({
sampleSize: schema.maybe(
schema.number({
min: MIN_SAVED_SEARCH_SAMPLE_SIZE,
max: MAX_SAVED_SEARCH_SAMPLE_SIZE,
})
),
};
export const SCHEMA_SEARCH_V8_12_0 = schema.object(V8_12_0);

const V8_13_0 = {
...V8_12_0,
});
export const SCHEMA_SEARCH_V8_13_0 = SCHEMA_SEARCH_V8_12_0.extends({
visContextJSON: schema.maybe(schema.string()),
};
export const SCHEMA_SEARCH_V8_13_0 = schema.object(V8_13_0);
});

0 comments on commit 0e922c2

Please sign in to comment.