screwdriver-data-schema 23.3.2 → 23.3.3

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.
Files changed (2) hide show
  1. package/config/base.js +2 -1
  2. package/package.json +1 -1
package/config/base.js CHANGED
@@ -77,7 +77,7 @@ const SCHEMA_CONFIG_PRE_TEMPLATE_MERGE = Joi.object()
77
77
  annotations: Annotations.annotations,
78
78
  jobs: Joi.when('template', {
79
79
  is: Joi.exist(),
80
- then: Joi.object().pattern(Job.jobName, ALLOWED_JOB_FIELDS_WITH_PIPELINE_TEMPLATE).unknown(false),
80
+ then: SCHEMA_JOBS.optional(),
81
81
  otherwise: SCHEMA_JOBS.required()
82
82
  }),
83
83
  shared: Joi.when('template', {
@@ -113,6 +113,7 @@ const SCHEMA_CONFIG_POST_TEMPLATE_MERGE = Joi.object()
113
113
  * @type {Object}
114
114
  */
115
115
  module.exports = {
116
+ allowedJobFieldsWithPipelineTemplate: ALLOWED_JOB_FIELDS_WITH_PIPELINE_TEMPLATE,
116
117
  jobs: SCHEMA_JOBS,
117
118
  shared: SCHEMA_SHARED,
118
119
  prChain: SCHEMA_PR_CHAIN, // This is still used by pipeline schema.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "23.3.2",
3
+ "version": "23.3.3",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {