Skip to content

Commit ae9da48

Browse files
committed
Update the schema
1 parent d4a93f8 commit ae9da48

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

lib/optimizely/helpers/constants.rb

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ module Constants
205205
'cmab' => {
206206
'type' => 'object'
207207
},
208-
'holdout' => {
209-
'type' => 'object'
208+
'holdouts' => {
209+
'type' => 'array'
210210
}
211211
},
212212
'required' => %w[
@@ -322,25 +322,28 @@ module Constants
322322
}
323323
}
324324
},
325-
'holdout' => {
326-
'type' => 'object',
327-
'properties' => {
328-
'id' => {
329-
'type' => 'string'
330-
},
331-
'key' => {
332-
'type' => 'string'
333-
},
334-
'status' => {
335-
'type' => 'string'
336-
},
337-
'includedFlags' => {
338-
'type' => 'array',
339-
'items' => {'type' => 'string'}
340-
},
341-
'excludedFlags' => {
342-
'type' => 'array',
343-
'items' => {'type' => 'string'}
325+
'holdouts' => {
326+
'type' => 'array',
327+
'items' => {
328+
'type' => 'object',
329+
'properties' => {
330+
'id' => {
331+
'type' => 'string'
332+
},
333+
'key' => {
334+
'type' => 'string'
335+
},
336+
'status' => {
337+
'type' => 'string'
338+
},
339+
'includedFlags' => {
340+
'type' => 'array',
341+
'items' => {'type' => 'string'}
342+
},
343+
'excludedFlags' => {
344+
'type' => 'array',
345+
'items' => {'type' => 'string'}
346+
}
344347
}
345348
}
346349
}

0 commit comments

Comments
 (0)