diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.json b/descriptions-next/api.github.com/api.github.com.2022-11-28.json index dfc117eafe..248bfd79f3 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.json @@ -53092,7 +53092,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -53124,7 +53124,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -53133,34 +53133,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -53172,9 +53150,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml index a6b7ca4f69..f09f3ff749 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml @@ -38673,8 +38673,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -38697,31 +38696,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -38729,7 +38713,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/api.github.com/api.github.com.json b/descriptions-next/api.github.com/api.github.com.json index dfc117eafe..248bfd79f3 100644 --- a/descriptions-next/api.github.com/api.github.com.json +++ b/descriptions-next/api.github.com/api.github.com.json @@ -53092,7 +53092,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -53124,7 +53124,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -53133,34 +53133,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -53172,9 +53150,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/api.github.com/api.github.com.yaml b/descriptions-next/api.github.com/api.github.com.yaml index a6b7ca4f69..f09f3ff749 100644 --- a/descriptions-next/api.github.com/api.github.com.yaml +++ b/descriptions-next/api.github.com/api.github.com.yaml @@ -38673,8 +38673,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -38697,31 +38696,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -38729,7 +38713,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index 73f5960381..4271801edf 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -495384,7 +495384,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -495434,7 +495434,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -495443,34 +495443,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -495482,9 +495460,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index 50018cc98e..36b2246c65 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -81792,8 +81792,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -81816,31 +81815,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -81848,7 +81832,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json index 73f5960381..4271801edf 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json @@ -495384,7 +495384,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -495434,7 +495434,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -495443,34 +495443,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -495482,9 +495460,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml index 50018cc98e..36b2246c65 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml @@ -81792,8 +81792,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -81816,31 +81815,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -81848,7 +81832,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json index a52ca7205d..19ec5bd700 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -560687,7 +560687,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -560737,7 +560737,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -560746,34 +560746,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -560785,9 +560763,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml index 9676b0316a..b22117c037 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -95602,8 +95602,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -95626,31 +95625,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -95658,7 +95642,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.json b/descriptions-next/ghec/dereferenced/ghec.deref.json index a52ca7205d..19ec5bd700 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -560687,7 +560687,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -560737,7 +560737,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -560746,34 +560746,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -560785,9 +560763,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index 9676b0316a..b22117c037 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -95602,8 +95602,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -95626,31 +95625,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -95658,7 +95642,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghec/ghec.2022-11-28.json b/descriptions-next/ghec/ghec.2022-11-28.json index ea357c480f..196ff2a4b0 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.json +++ b/descriptions-next/ghec/ghec.2022-11-28.json @@ -66709,7 +66709,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -66741,7 +66741,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -66750,34 +66750,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -66789,9 +66767,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index 4fb75dc027..a6fe1cdc97 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.yaml +++ b/descriptions-next/ghec/ghec.2022-11-28.yaml @@ -48416,8 +48416,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -48440,31 +48439,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -48472,7 +48456,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index ea357c480f..196ff2a4b0 100644 --- a/descriptions-next/ghec/ghec.json +++ b/descriptions-next/ghec/ghec.json @@ -66709,7 +66709,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -66741,7 +66741,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -66750,34 +66750,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -66789,9 +66767,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index 4fb75dc027..a6fe1cdc97 100644 --- a/descriptions-next/ghec/ghec.yaml +++ b/descriptions-next/ghec/ghec.yaml @@ -48416,8 +48416,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -48440,31 +48439,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -48472,7 +48456,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json index 2b73c01927..94507ed9c8 100644 --- a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json +++ b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json @@ -453688,7 +453688,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -453738,7 +453738,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -453747,34 +453747,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -453786,9 +453764,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml index 1c874a2f86..83ff1ba151 100644 --- a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml +++ b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml @@ -69184,8 +69184,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -69208,31 +69207,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -69240,7 +69224,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.json b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.json index 2b73c01927..94507ed9c8 100644 --- a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.json +++ b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.json @@ -453688,7 +453688,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -453738,7 +453738,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -453747,34 +453747,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -453786,9 +453764,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.yaml b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.yaml index 1c874a2f86..83ff1ba151 100644 --- a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.yaml +++ b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.deref.yaml @@ -69184,8 +69184,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -69208,31 +69207,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -69240,7 +69224,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.json b/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.json index 56fe5f0551..77d98a8996 100644 --- a/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.json +++ b/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.json @@ -45033,7 +45033,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -45065,7 +45065,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -45074,34 +45074,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -45113,9 +45091,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.yaml b/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.yaml index b6e49abe40..c87739808f 100644 --- a/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.yaml +++ b/descriptions-next/ghes-3.14/ghes-3.14.2022-11-28.yaml @@ -32709,8 +32709,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -32733,31 +32732,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 items: type: object properties: @@ -32765,7 +32749,6 @@ paths: type: string required: - name - - type: string examples: default: value: diff --git a/descriptions-next/ghes-3.14/ghes-3.14.json b/descriptions-next/ghes-3.14/ghes-3.14.json index 56fe5f0551..77d98a8996 100644 --- a/descriptions-next/ghes-3.14/ghes-3.14.json +++ b/descriptions-next/ghes-3.14/ghes-3.14.json @@ -45033,7 +45033,7 @@ }, "post": { "summary": "Add labels to an issue", - "description": "Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. ", + "description": "Adds labels to an issue.", "tags": [ "issues" ], @@ -45065,7 +45065,7 @@ "labels": { "type": "array", "minItems": 1, - "description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", + "description": "The names of the labels to add to the issue's existing labels. You can also pass an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. To replace all of the labels for an issue, use \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue).\"", "items": { "type": "string" } @@ -45074,34 +45074,12 @@ }, { "type": "array", - "minItems": 1, "items": { "type": "string" } }, - { - "type": "object", - "properties": { - "labels": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - } - } - } - }, { "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { @@ -45113,9 +45091,6 @@ "name" ] } - }, - { - "type": "string" } ] }, diff --git a/descriptions-next/ghes-3.14/ghes-3.14.yaml b/descriptions-next/ghes-3.14/ghes-3.14.yaml index b6e49abe40..c87739808f 100644 --- a/descriptions-next/ghes-3.14/ghes-3.14.yaml +++ b/descriptions-next/ghes-3.14/ghes-3.14.yaml @@ -32709,8 +32709,7 @@ paths: subcategory: labels post: summary: Add labels to an issue - description: 'Adds labels to an issue. If you provide an empty array of labels, - all labels are removed from the issue. ' + description: Adds labels to an issue. tags: - issues operationId: issues/add-labels @@ -32733,31 +32732,16 @@ paths: type: array minItems: 1 description: The names of the labels to add to the issue's existing - labels. You can pass an empty array to remove all labels. Alternatively, - you can pass a single label as a `string` or an `array` of labels - directly, but GitHub recommends passing an object with the `labels` - key. You can also replace all of the labels for an issue. For - more information, see "[Set labels for an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." + labels. You can also pass an `array` of labels directly, but + GitHub recommends passing an object with the `labels` key. To + replace all of the labels for an issue, use "[Set labels for + an issue](https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue)." items: type: string - type: array - minItems: 1 items: type: string - - type: object - properties: - labels: - type: array - minItems: 1 - items: - type: object - properties: - name: - type: string - required: - - name - type: array - minItems: 1 i{"code":"deadline_exceeded","msg":"operation timed out"}