@azteam/express 1.2.242 → 1.2.243

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/package.json +1 -1
  2. package/src/validate.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.242",
3
+ "version": "1.2.243",
4
4
  "main": "src/index.js",
5
5
  "engines": {
6
6
  "node": ">= 12.0.0",
package/src/validate.js CHANGED
@@ -121,6 +121,12 @@ export const schemaObject = (props = {}, optional = false) => ({
121
121
  optional,
122
122
  });
123
123
 
124
+ export const schemaEnum = (values, optional = false) => ({
125
+ type: 'enum',
126
+ values,
127
+ optional,
128
+ });
129
+
124
130
  /* rules */
125
131
 
126
132
  export const rulesId = {