cht-conf 3.10.1 → 3.10.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.10.2](https://github.com/medic/cht-conf/compare/v3.10.1...v3.10.2) (2022-03-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **#371:** allow more characters in form name validation ([265bc48](https://github.com/medic/cht-conf/commit/265bc487d38201e4b3a96ee3d8939c7cba97b5a2)), closes [#371](https://github.com/medic/cht-conf/issues/371) [medic/cht-conf#471](https://github.com/medic/cht-conf/issues/471)
7
+
1
8
  ## [3.10.1](https://github.com/medic/cht-conf/compare/v3.10.0...v3.10.1) (2022-02-23)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -1,7 +1,7 @@
1
1
  const joi = require('@hapi/joi');
2
2
 
3
3
  const FormsSchema = joi.object().pattern(
4
- /\w{1,30}/,
4
+ joi.string().min(1),
5
5
  joi.object({
6
6
  meta: joi.object({
7
7
  code: joi.string().required(),
@@ -10,7 +10,7 @@ const FormsSchema = joi.object().pattern(
10
10
  subject_key: joi.string()
11
11
  }).required(),
12
12
  fields: joi.object().pattern(
13
- /\w{1,30}/,
13
+ joi.string().min(1),
14
14
  joi.object({
15
15
  type: joi.string().required(),
16
16
  labels: joi.object({