changedInput schema / properties / student / anyOf
Previous value: -[
- {
- "properties": {
- "email": {
- "description": "The email address of the student booking the lesson.",
- "type": "string"
- },
- "firstName": {
- "description": "The first name of the student booking the lesson.",
- "type": "string"
- },
- "lastName": {
- "description": "The last name of the student booking the lesson.",
- "type": "string"
- },
- "phone": {
- "description": "The phone number of the student booking the lesson.",
- "type": "string"
- },
- "type": {
- "const": "adult",
- "type": "string"
- }
- },
- "required": [
- "type",
- "firstName",
- "lastName",
- "email",
- "phone"
- ],
- "type": "object"
- },
- {
- "properties": {
- "email": {
- "description": "The email address of the student booking the lesson.",
- "type": "string"
- },
- "firstName": {
- "description": "The first name of the student booking the lesson.",
- "type": "string"
- },
- "guardianFirstName": {
- "description": "The first name of the guardian booking the lesson.",
- "type": "string"
- },
- "guardianLastName": {
- "description": "The last name of the guardian booking the lesson.",
- "type": "string"
- },
- "lastName": {
- "description": "The last name of the student booking the lesson.",
- "type": "string"
- },
- "phone": {
- "description": "The phone number of the student booking the lesson.",
- "type": "string"
- },
- "type": {
- "const": "junior",
- "type": "string"
- }
- },
- "required": [
- "type",
- "firstName",
- "lastName",
- "guardianFirstName",
- "guardianLastName",
- "email",
- "phone"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "email": {
+ "description": "The email address of the student booking the lesson.",
+ "type": "string"
+ },
+ "firstName": {
+ "description": "The first name of the student booking the lesson.",
+ "type": "string"
+ },
+ "lastName": {
+ "description": "The last name of the student booking the lesson.",
+ "type": "string"
+ },
+ "phone": {
+ "description": "The phone number of the student booking the lesson.",
+ "type": "string"
+ },
+ "type": {
+ "const": "adult",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "firstName",
+ "lastName",
+ "email"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "The contact information for the student participating in the lesson. Student type can be either 'adult' or 'junior'. If the student is a junior, the guardian's information is also required.",
+ "properties": {
+ "email": {
+ "description": "The email address of the student booking the lesson.",
+ "type": "string"
+ },
+ "firstName": {
+ "description": "The first name of the student booking the lesson.",
+ "type": "string"
+ },
+ "guardianFirstName": {
+ "description": "The first name of the guardian booking the lesson.",
+ "type": "string"
+ },
+ "guardianLastName": {
+ "description": "The last name of the guardian booking the lesson.",
+ "type": "string"
+ },
+ "lastName": {
+ "description": "The last name of the student booking the lesson.",
+ "type": "string"
+ },
+ "phone": {
+ "description": "The phone number of the student booking the lesson.",
+ "type": "string"
+ },
+ "type": {
+ "const": "junior",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "firstName",
+ "lastName",
+ "guardianFirstName",
+ "guardianLastName",
+ "email"
+ ],
+ "type": "object"
+ }
+]