schemas/instanceMemberPost.json in losant_rest-1.13.1 vs schemas/instanceMemberPost.json in losant_rest-1.14.0
- old
+ new
@@ -4,19 +4,34 @@
"properties": {
"userId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
+ "email": {
+ "type": "string",
+ "format": "email",
+ "maxLength": 1024
+ },
"role": {
"type": "string",
"enum": [
"admin",
"view"
]
}
},
"additionalProperties": false,
- "required": [
- "userId",
- "role"
+ "anyOf": [
+ {
+ "required": [
+ "email",
+ "role"
+ ]
+ },
+ {
+ "required": [
+ "userId",
+ "role"
+ ]
+ }
]
}
\ No newline at end of file