Removing required from roles on user API, as it is now paid.
This commit is contained in:
parent
225457d123
commit
87362be154
|
@ -1550,8 +1550,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"email",
|
"email"
|
||||||
"roles"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"userOutput": {
|
"userOutput": {
|
||||||
|
@ -1622,7 +1621,6 @@
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"email",
|
"email",
|
||||||
"roles",
|
|
||||||
"_id"
|
"_id"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1701,7 +1699,6 @@
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"email",
|
"email",
|
||||||
"roles",
|
|
||||||
"_id"
|
"_id"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1324,7 +1324,6 @@ components:
|
||||||
role ID, e.g. ADMIN.
|
role ID, e.g. ADMIN.
|
||||||
required:
|
required:
|
||||||
- email
|
- email
|
||||||
- roles
|
|
||||||
userOutput:
|
userOutput:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -1385,7 +1384,6 @@ components:
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- email
|
- email
|
||||||
- roles
|
|
||||||
- _id
|
- _id
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
|
@ -1451,7 +1449,6 @@ components:
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- email
|
- email
|
||||||
- roles
|
|
||||||
- _id
|
- _id
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
|
|
|
@ -92,7 +92,7 @@ const userSchema = object(
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ required: ["email", "roles"] }
|
{ required: ["email"] }
|
||||||
)
|
)
|
||||||
|
|
||||||
const userOutputSchema = {
|
const userOutputSchema = {
|
||||||
|
|
|
@ -599,7 +599,7 @@ export interface components {
|
||||||
global?: boolean;
|
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. */
|
/** @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: {
|
userOutput: {
|
||||||
data: {
|
data: {
|
||||||
|
@ -629,7 +629,7 @@ export interface components {
|
||||||
global?: boolean;
|
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. */
|
/** @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. */
|
/** @description The ID of the user. */
|
||||||
_id: string;
|
_id: string;
|
||||||
};
|
};
|
||||||
|
@ -662,7 +662,7 @@ export interface components {
|
||||||
global?: boolean;
|
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. */
|
/** @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. */
|
/** @description The ID of the user. */
|
||||||
_id: string;
|
_id: string;
|
||||||
}[];
|
}[];
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../packages/server/specs/openapi.json
|
|
|
@ -1 +0,0 @@
|
||||||
../packages/server/specs/openapi.yaml
|
|
Loading…
Reference in New Issue