From 916844c55b01522477674f03bb276031b1e9f83f Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 8 Jan 2025 12:11:55 -0500 Subject: [PATCH 1/4] fix: replace missing component in override with inline definition --- ...st-organization-fine-grained-permissions.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/overrides/list-organization-fine-grained-permissions.json b/scripts/overrides/list-organization-fine-grained-permissions.json index de2137cf..9681edad 100644 --- a/scripts/overrides/list-organization-fine-grained-permissions.json +++ b/scripts/overrides/list-organization-fine-grained-permissions.json @@ -20,7 +20,21 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/organization-fine-grained-permission" + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "description" + ] } }, "examples": { From 2b41d70b6431ec33e5daa8036cf034dc58286274 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 8 Jan 2025 12:14:32 -0500 Subject: [PATCH 2/4] also replace example --- .../list-organization-fine-grained-permissions.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/overrides/list-organization-fine-grained-permissions.json b/scripts/overrides/list-organization-fine-grained-permissions.json index 9681edad..9c19a695 100644 --- a/scripts/overrides/list-organization-fine-grained-permissions.json +++ b/scripts/overrides/list-organization-fine-grained-permissions.json @@ -39,7 +39,16 @@ }, "examples": { "default": { - "$ref": "#/components/examples/organization-fine-grained-permission-example" + "value": [ + { + "name": "read_organization_custom_org_role", + "description": "View organization roles" + }, + { + "name": "write_organization_custom_org_role", + "description": "Manage custom organization roles" + } + ] } } } From b272584a682267633f725e21efb1d50b488d4954 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 8 Jan 2025 12:14:53 -0500 Subject: [PATCH 3/4] style: prettier --- ...organization-fine-grained-permissions.json | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/scripts/overrides/list-organization-fine-grained-permissions.json b/scripts/overrides/list-organization-fine-grained-permissions.json index 9c19a695..b8474319 100644 --- a/scripts/overrides/list-organization-fine-grained-permissions.json +++ b/scripts/overrides/list-organization-fine-grained-permissions.json @@ -20,21 +20,18 @@ "schema": { "type": "array", "items": { - "title": "Organization Fine-Grained Permission", - "description": "A fine-grained permission that protects organization resources.", - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - } + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" }, - "required": [ - "name", - "description" - ] + "description": { + "type": "string" + } + }, + "required": ["name", "description"] } }, "examples": { From 9bed770e0c0962c193212c031d5a397f9149f3ed Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 8 Jan 2025 12:17:03 -0500 Subject: [PATCH 4/4] generate schemas --- generated/api.github.com.json | 27 +++++++++++++++++++++++++-- generated/ghes-3.10.json | 27 +++++++++++++++++++++++++-- generated/ghes-3.11.json | 27 +++++++++++++++++++++++++-- generated/ghes-3.12.json | 27 +++++++++++++++++++++++++-- generated/ghes-3.13.json | 27 +++++++++++++++++++++++++-- 5 files changed, 125 insertions(+), 10 deletions(-) diff --git a/generated/api.github.com.json b/generated/api.github.com.json index 5bc808a6..d80f611b 100644 --- a/generated/api.github.com.json +++ b/generated/api.github.com.json @@ -70656,12 +70656,35 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/organization-fine-grained-permission" + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "description" + ] } }, "examples": { "default": { - "$ref": "#/components/examples/organization-fine-grained-permission-example" + "value": [ + { + "name": "read_organization_custom_org_role", + "description": "View organization roles" + }, + { + "name": "write_organization_custom_org_role", + "description": "Manage custom organization roles" + } + ] } } } diff --git a/generated/ghes-3.10.json b/generated/ghes-3.10.json index ade736ff..3db0adc1 100644 --- a/generated/ghes-3.10.json +++ b/generated/ghes-3.10.json @@ -63757,12 +63757,35 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/organization-fine-grained-permission" + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "description" + ] } }, "examples": { "default": { - "$ref": "#/components/examples/organization-fine-grained-permission-example" + "value": [ + { + "name": "read_organization_custom_org_role", + "description": "View organization roles" + }, + { + "name": "write_organization_custom_org_role", + "description": "Manage custom organization roles" + } + ] } } } diff --git a/generated/ghes-3.11.json b/generated/ghes-3.11.json index 9f424402..fb7ce556 100644 --- a/generated/ghes-3.11.json +++ b/generated/ghes-3.11.json @@ -65260,12 +65260,35 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/organization-fine-grained-permission" + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "description" + ] } }, "examples": { "default": { - "$ref": "#/components/examples/organization-fine-grained-permission-example" + "value": [ + { + "name": "read_organization_custom_org_role", + "description": "View organization roles" + }, + { + "name": "write_organization_custom_org_role", + "description": "Manage custom organization roles" + } + ] } } } diff --git a/generated/ghes-3.12.json b/generated/ghes-3.12.json index 53730712..93e67221 100644 --- a/generated/ghes-3.12.json +++ b/generated/ghes-3.12.json @@ -66595,12 +66595,35 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/organization-fine-grained-permission" + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "description" + ] } }, "examples": { "default": { - "$ref": "#/components/examples/organization-fine-grained-permission-example" + "value": [ + { + "name": "read_organization_custom_org_role", + "description": "View organization roles" + }, + { + "name": "write_organization_custom_org_role", + "description": "Manage custom organization roles" + } + ] } } } diff --git a/generated/ghes-3.13.json b/generated/ghes-3.13.json index 2d3c3207..7b63f0df 100644 --- a/generated/ghes-3.13.json +++ b/generated/ghes-3.13.json @@ -67302,12 +67302,35 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/organization-fine-grained-permission" + "title": "Organization Fine-Grained Permission", + "description": "A fine-grained permission that protects organization resources.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "description" + ] } }, "examples": { "default": { - "$ref": "#/components/examples/organization-fine-grained-permission-example" + "value": [ + { + "name": "read_organization_custom_org_role", + "description": "View organization roles" + }, + { + "name": "write_organization_custom_org_role", + "description": "Manage custom organization roles" + } + ] } } }