@rosen-bridge/config 0.2.0 → 0.2.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.
@@ -216,6 +216,7 @@ const fieldValidations: Record<string, Record<string, any>> = {
216
216
  }
217
217
  },
218
218
  },
219
+ boolean: {},
219
220
  number: {
220
221
  gt: (validation: VNumeric<number>) => {
221
222
  if (!('gt' in validation)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rosen-bridge/config",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "a package to manage configs of rosen bridge projects",
5
5
  "repository": "git+https://github.com/rosen-bridge/utils.git",
6
6
  "license": "GPL-3.0",
@@ -152,6 +152,16 @@ export const correctApiSchema = {
152
152
  },
153
153
  },
154
154
  },
155
+ useTls: {
156
+ type: 'boolean',
157
+ default: false,
158
+ validations: [
159
+ {
160
+ required: true,
161
+ error: 'useTls must be specified',
162
+ },
163
+ ],
164
+ },
155
165
  },
156
166
  },
157
167
  };