Merge pull request #2595 from akhilmhdh/fix/scim-type-removed

feat: field type is not even used in schema so removed as some providers don't provide it
This commit is contained in:
Akhil Mohan
2024-10-16 20:24:11 +05:30
committed by GitHub
+4 -6
View File
@@ -20,7 +20,7 @@ const ScimUserSchema = z.object({
z.object({ z.object({
primary: z.boolean(), primary: z.boolean(),
value: z.string().email(), value: z.string().email(),
type: z.string().trim() type: z.string().trim().default("work")
}) })
) )
.optional(), .optional(),
@@ -210,8 +210,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
.array( .array(
z.object({ z.object({
primary: z.boolean(), primary: z.boolean(),
value: z.string().email(), value: z.string().email()
type: z.string().trim()
}) })
) )
.optional(), .optional(),
@@ -281,8 +280,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
.array( .array(
z.object({ z.object({
primary: z.boolean(), primary: z.boolean(),
value: z.string().email(), value: z.string().email()
type: z.string().trim()
}) })
) )
.optional(), .optional(),
@@ -301,7 +299,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
z.object({ z.object({
primary: z.boolean(), primary: z.boolean(),
value: z.string().email(), value: z.string().email(),
type: z.string().trim() type: z.string().trim().default("work")
}) })
), ),
displayName: z.string().trim(), displayName: z.string().trim(),