Skip to content

Commit

Permalink
Docs(SCIMMY.Schemas): extension schema definition addition and removal
Browse files Browse the repository at this point in the history
sleelin committed Nov 14, 2023
1 parent 005275f commit 812f437
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/schemas.js
Original file line number Diff line number Diff line change
@@ -65,6 +65,12 @@ import {ServiceProviderConfig} from "./schemas/spconfig.js";
*
* // Add custom "mail" attribute to the Group schema definition
* SCIMMY.Schemas.Group.definition.extend([new SCIMMY.Types.Attribute("string", "mail", {required: true})]);
*
* // Extend the User schema definition with the EnterpriseUser schema definition, and make it required
* SCIMMY.Schemas.User.definition.extend(SCIMMY.Schemas.EnterpriseUser.definition, true);
*
* // Remove the EnterpriseUser extension schema definition from the User schema definition
* SCIMMY.Schemas.User.definition.truncate(SCIMMY.Schemas.EnterpriseUser.definition);
* ```
*/
export default class Schemas {

0 comments on commit 812f437

Please sign in to comment.