screwdriver-data-schema 23.2.0 → 23.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,8 @@ const SCHEMA_CONFIG = Joi.object()
14
14
  parameters: Parameters.parameters.default({}),
15
15
  annotations: Annotations.annotations,
16
16
  cache: BaseSchema.cache,
17
- subscribe: BaseSchema.subscribe
17
+ subscribe: BaseSchema.subscribe,
18
+ stages: BaseSchema.stages
18
19
  })
19
20
  .unknown(false);
20
21
 
package/models/event.js CHANGED
@@ -32,7 +32,10 @@ const MODEL = {
32
32
  .description('When this event was created')
33
33
  .example('2038-01-19T03:14:08.131Z'),
34
34
  creator: Scm.user.description('Creator of the event'),
35
- meta: Joi.object().default({}).description('Key=>Value information from the event itself'),
35
+ meta: Joi.object()
36
+ .default({})
37
+ .description('Key=>Value information from the event itself')
38
+ .example({ parameters: { nameA: 'value1', jobA: { nameB: 'value2' } } }),
36
39
  pipelineId: Joi.number().integer().positive().description('Identifier of this pipeline').example(123345),
37
40
  sha: Joi.string()
38
41
  .hex()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "23.2.0",
3
+ "version": "23.2.2",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,8 @@ const SCHEMA_SCAN = Joi.object().keys({
31
31
  }),
32
32
  search: Joi.object().keys({
33
33
  field: Joi.alternatives().try(Joi.array().items(SCHEMA_SEARCH_FIELD), SCHEMA_SEARCH_FIELD),
34
- keyword: Joi.alternatives().try(Joi.array().items(SCHEMA_SEARCH_KEYWORD), SCHEMA_SEARCH_KEYWORD)
34
+ keyword: Joi.alternatives().try(Joi.array().items(SCHEMA_SEARCH_KEYWORD), SCHEMA_SEARCH_KEYWORD),
35
+ inverse: Joi.boolean().default(false).optional()
35
36
  }),
36
37
  sort: Joi.string().lowercase().valid('ascending', 'descending').default('descending'),
37
38
  sortBy: Joi.string().max(100),