@springfield/ham-radio-utils 4.18.0 → 4.19.0

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.
@@ -30,6 +30,20 @@
30
30
  }
31
31
  },
32
32
  "definitions": {
33
+ "stringChoice": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["label", "value"],
37
+ "properties": {
38
+ "label": { "type": "string", "minLength": 1 },
39
+ "value": { "type": "string" }
40
+ }
41
+ },
42
+ "stringChoices": {
43
+ "type": "array",
44
+ "minItems": 1,
45
+ "items": { "$ref": "#/definitions/stringChoice" }
46
+ },
33
47
  "seek": {
34
48
  "oneOf": [
35
49
  { "type": "integer", "minimum": 0 },
@@ -160,7 +174,8 @@
160
174
  "properties": {
161
175
  "kind": { "const": "ascii" },
162
176
  "length": { "type": "integer", "minimum": 1 },
163
- "pad": { "type": "integer", "minimum": 0, "maximum": 255 }
177
+ "pad": { "type": "integer", "minimum": 0, "maximum": 255 },
178
+ "choices": { "$ref": "#/definitions/stringChoices" }
164
179
  },
165
180
  "additionalProperties": false
166
181
  },
@@ -180,7 +195,8 @@
180
195
  "properties": {
181
196
  "kind": { "const": "dtmf" },
182
197
  "length": { "type": "integer", "minimum": 1 },
183
- "charset": { "type": "string" }
198
+ "charset": { "type": "string" },
199
+ "choices": { "$ref": "#/definitions/stringChoices" }
184
200
  },
185
201
  "additionalProperties": false
186
202
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-utils",
3
- "version": "4.18.0",
3
+ "version": "4.19.0",
4
4
  "author": "Bryan Hunt",
5
5
  "license": "MIT",
6
6
  "readme": "README.md",
@@ -30,6 +30,20 @@
30
30
  }
31
31
  },
32
32
  "definitions": {
33
+ "stringChoice": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["label", "value"],
37
+ "properties": {
38
+ "label": { "type": "string", "minLength": 1 },
39
+ "value": { "type": "string" }
40
+ }
41
+ },
42
+ "stringChoices": {
43
+ "type": "array",
44
+ "minItems": 1,
45
+ "items": { "$ref": "#/definitions/stringChoice" }
46
+ },
33
47
  "seek": {
34
48
  "oneOf": [
35
49
  { "type": "integer", "minimum": 0 },
@@ -160,7 +174,8 @@
160
174
  "properties": {
161
175
  "kind": { "const": "ascii" },
162
176
  "length": { "type": "integer", "minimum": 1 },
163
- "pad": { "type": "integer", "minimum": 0, "maximum": 255 }
177
+ "pad": { "type": "integer", "minimum": 0, "maximum": 255 },
178
+ "choices": { "$ref": "#/definitions/stringChoices" }
164
179
  },
165
180
  "additionalProperties": false
166
181
  },
@@ -180,7 +195,8 @@
180
195
  "properties": {
181
196
  "kind": { "const": "dtmf" },
182
197
  "length": { "type": "integer", "minimum": 1 },
183
- "charset": { "type": "string" }
198
+ "charset": { "type": "string" },
199
+ "choices": { "$ref": "#/definitions/stringChoices" }
184
200
  },
185
201
  "additionalProperties": false
186
202
  },