screwdriver-data-schema 21.28.0 → 21.28.1

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.
@@ -3,9 +3,9 @@
3
3
  const Joi = require('joi');
4
4
 
5
5
  const SCHEMA_TIMESTAMP_FORMAT = Joi.string()
6
- .valid('UTC', 'LOCAL_TIMEZONE', 'HUMAN_READABLE')
6
+ .valid('UTC', 'LOCAL_TIMEZONE')
7
7
  .optional()
8
- .default('HUMAN_READABLE')
8
+ .default('LOCAL_TIMEZONE')
9
9
  .description('User preferred timestamp');
10
10
  const SCHEMA_DISPLAY_JOB_NAME_LENGTH = Joi.number()
11
11
  .integer()
@@ -52,12 +52,15 @@ const SCHEMA_USER_SETTINGS = Joi.object()
52
52
  /\d/,
53
53
  Joi.object().keys({
54
54
  displayJobNameLength: SCHEMA_DISPLAY_JOB_NAME_LENGTH,
55
- showPRJobs: Joi.boolean(),
56
- timestampFormat: SCHEMA_TIMESTAMP_FORMAT
55
+ showPRJobs: Joi.boolean()
57
56
  })
58
57
  )
59
58
  .unknown();
60
59
 
60
+ SCHEMA_USER_SETTINGS.append({
61
+ timestampFormat: SCHEMA_TIMESTAMP_FORMAT
62
+ });
63
+
61
64
  module.exports = {
62
65
  pipelineSettings: SCHEMA_PIPELINE_SETTINGS,
63
66
  userSettings: SCHEMA_USER_SETTINGS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "21.28.0",
3
+ "version": "21.28.1",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {