1
0
Fork 0
mirror of synced 2024-07-14 10:45:51 +12:00

Removing required from roles on user API, as it is now paid.

This commit is contained in:
mike12345567 2023-09-20 10:51:21 +01:00
parent 225457d123
commit 87362be154
6 changed files with 5 additions and 13 deletions

View file

@ -1550,8 +1550,7 @@
}
},
"required": [
"email",
"roles"
"email"
]
},
"userOutput": {
@ -1622,7 +1621,6 @@
},
"required": [
"email",
"roles",
"_id"
]
}
@ -1701,7 +1699,6 @@
},
"required": [
"email",
"roles",
"_id"
]
}

View file

@ -1324,7 +1324,6 @@ components:
role ID, e.g. ADMIN.
required:
- email
- roles
userOutput:
type: object
properties:
@ -1385,7 +1384,6 @@ components:
type: string
required:
- email
- roles
- _id
required:
- data
@ -1451,7 +1449,6 @@ components:
type: string
required:
- email
- roles
- _id
required:
- data

View file

@ -92,7 +92,7 @@ const userSchema = object(
},
},
},
{ required: ["email", "roles"] }
{ required: ["email"] }
)
const userOutputSchema = {

View file

@ -599,7 +599,7 @@ export interface components {
global?: boolean;
};
/** @description Contains the roles of the user per app (assuming they are not a builder user). This field can only be set on a business or enterprise license. */
roles: { [key: string]: string };
roles?: { [key: string]: string };
};
userOutput: {
data: {
@ -629,7 +629,7 @@ export interface components {
global?: boolean;
};
/** @description Contains the roles of the user per app (assuming they are not a builder user). This field can only be set on a business or enterprise license. */
roles: { [key: string]: string };
roles?: { [key: string]: string };
/** @description The ID of the user. */
_id: string;
};
@ -662,7 +662,7 @@ export interface components {
global?: boolean;
};
/** @description Contains the roles of the user per app (assuming they are not a builder user). This field can only be set on a business or enterprise license. */
roles: { [key: string]: string };
roles?: { [key: string]: string };
/** @description The ID of the user. */
_id: string;
}[];

View file

@ -1 +0,0 @@
../packages/server/specs/openapi.json

View file

@ -1 +0,0 @@
../packages/server/specs/openapi.yaml