Skip to content

Commit e98eb18

Browse files
authored
Merge pull request #60 from RWS/2026.07.R1.PublicAPIService.docs
removing oneOf
2 parents 935dd8f + 999962a commit e98eb18

1 file changed

Lines changed: 39 additions & 74 deletions

File tree

‎articles/LCPublicAPI/api/Public-API.v1.json‎

Lines changed: 39 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -33552,87 +33552,52 @@
3355233552
},
3355333553
"vot-person-request": {
3355433554
"title": "Vendor Order Template Person",
33555-
"description": "A user or group assigned as a manager or assignee on a vendor order template.",
33556-
"discriminator": {
33557-
"propertyName": "type"
33558-
},
33559-
"oneOf": [
33560-
{
33561-
"title": "User assignment",
33562-
"type": "object",
33563-
"description": "Assigns an individual user. The `id` must be the `id` of a user present in the vendor's `members` list (see [Get Vendor](#/operations/GetVendor) with `fields=members`).",
33564-
"properties": {
33565-
"type": {
33566-
"type": "string",
33567-
"enum": ["user"]
33568-
},
33569-
"id": {
33570-
"type": "string",
33571-
"description": "The identifier of the user."
33572-
}
33573-
},
33574-
"required": ["type", "id"]
33555+
"description": "A user or group assigned as a manager or assignee on a vendor order template. When `type` is `user`, `id` is the identifier of a user present in the vendor's `members` list. When `type` is `group`, `id` is the identifier of a group present in the vendor's `groups` list.",
33556+
"type": "object",
33557+
"required": [
33558+
"type",
33559+
"id"
33560+
],
33561+
"properties": {
33562+
"type": {
33563+
"type": "string",
33564+
"description": "The kind of assignment.",
33565+
"enum": [
33566+
"user",
33567+
"group"
33568+
]
3357533569
},
33576-
{
33577-
"title": "Group assignment",
33578-
"type": "object",
33579-
"description": "Assigns a group. The `id` must be the `id` of a group present in the vendor's `groups` list (see [Get Vendor](#/operations/GetVendor)).",
33580-
"properties": {
33581-
"type": {
33582-
"type": "string",
33583-
"enum": ["group"]
33584-
},
33585-
"id": {
33586-
"type": "string",
33587-
"description": "The identifier of the group."
33588-
}
33589-
},
33590-
"required": ["type", "id"]
33570+
"id": {
33571+
"type": "string",
33572+
"description": "The identifier of the user or group being assigned, according to `type`."
3359133573
}
33592-
]
33574+
}
3359333575
},
3359433576
"vot-person-response": {
3359533577
"title": "Vendor Order Template Person",
33596-
"description": "A user or group assigned as a manager or assignee on a vendor order template.",
33597-
"discriminator": {
33598-
"propertyName": "type"
33599-
},
33600-
"oneOf": [
33601-
{
33602-
"title": "User assignment",
33603-
"type": "object",
33604-
"description": "The user it is assigned to",
33605-
"properties": {
33606-
"type": {
33607-
"type": "string",
33608-
"enum": ["user"]
33609-
},
33610-
"user": {
33611-
"type": "object",
33612-
"description": "The user",
33613-
"$ref":"#/components/schemas/user"
33614-
}
33615-
},
33616-
"required": ["type", "user"]
33578+
"description": "A user or group assigned as a manager or assignee on a vendor order template. When `type` is `user`, the `user` object is populated. When `type` is `group`, the `group` object is populated.",
33579+
"type": "object",
33580+
"required": [
33581+
"type"
33582+
],
33583+
"properties": {
33584+
"type": {
33585+
"type": "string",
33586+
"description": "The kind of assignment.",
33587+
"enum": [
33588+
"user",
33589+
"group"
33590+
]
3361733591
},
33618-
{
33619-
"title": "Group assignment",
33620-
"type": "object",
33621-
"description": "The group it is assigned to",
33622-
"properties": {
33623-
"type": {
33624-
"type": "string",
33625-
"enum": ["group"]
33626-
},
33627-
"group": {
33628-
"type": "object",
33629-
"description": "The group",
33630-
"$ref":"#/components/schemas/group"
33631-
}
33632-
},
33633-
"required": ["type", "group"]
33592+
"user": {
33593+
"description": "The user it is assigned to. Present when `type` is `user`.",
33594+
"$ref": "#/components/schemas/user"
33595+
},
33596+
"group": {
33597+
"description": "The group it is assigned to. Present when `type` is `group`.",
33598+
"$ref": "#/components/schemas/group"
3363433599
}
33635-
]
33600+
}
3363633601
},
3363733602
"vot-configuration": {
3363833603
"title": "Vendor Order Template Configuration",

0 commit comments

Comments
 (0)