Fix OpenAPI schema for custom profile attributes (#31070)
Этот коммит содержится в:
@@ -53,7 +53,36 @@
|
|||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
attrs:
|
attrs:
|
||||||
type: string
|
type: object
|
||||||
|
properties:
|
||||||
|
visibility:
|
||||||
|
type: string
|
||||||
|
description: "Visibility of the attribute"
|
||||||
|
enum: ["hidden", "when_set", "always"]
|
||||||
|
default: "when_set"
|
||||||
|
sort_order:
|
||||||
|
type: number
|
||||||
|
description: "Sort order for displaying this attribute"
|
||||||
|
options:
|
||||||
|
type: array
|
||||||
|
description: "Options for select/multiselect fields"
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
color:
|
||||||
|
type: string
|
||||||
|
value_type:
|
||||||
|
type: string
|
||||||
|
description: "Type of text value"
|
||||||
|
enum: ["email", "url", "phone"]
|
||||||
|
ldap:
|
||||||
|
type: string
|
||||||
|
description: "LDAP attribute for syncing"
|
||||||
|
saml:
|
||||||
|
type: string
|
||||||
|
description: "SAML attribute for syncing"
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
description: Custom Profile Attribute field creation successful
|
description: Custom Profile Attribute field creation successful
|
||||||
@@ -106,7 +135,38 @@
|
|||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
attrs:
|
attrs:
|
||||||
type: string
|
type: object
|
||||||
|
properties:
|
||||||
|
visibility:
|
||||||
|
type: string
|
||||||
|
description: "Visibility of the attribute"
|
||||||
|
enum: ["hidden", "when_set", "always"]
|
||||||
|
default: "when_set"
|
||||||
|
sort_order:
|
||||||
|
type: number
|
||||||
|
description: "Sort order for displaying this attribute"
|
||||||
|
options:
|
||||||
|
type: array
|
||||||
|
description: "Options for select/multiselect fields"
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
color:
|
||||||
|
type: string
|
||||||
|
value_type:
|
||||||
|
type: string
|
||||||
|
description: "Type of text value"
|
||||||
|
enum: ["email", "url", "phone"]
|
||||||
|
ldap:
|
||||||
|
type: string
|
||||||
|
description: "LDAP attribute for syncing"
|
||||||
|
saml:
|
||||||
|
type: string
|
||||||
|
description: "SAML attribute for syncing"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Custom Profile Attribute field patch successful
|
description: Custom Profile Attribute field patch successful
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user