We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enterprise
1 parent 9a2cc23 commit 172e2b3Copy full SHA for 172e2b3
scripts/build.js
@@ -43,10 +43,14 @@ async function run() {
43
};
44
45
// Check all instances of `$ref` in the OpenAPI spec, and add them to the definitions
46
+ // Remove all instances of `enterprise` in the OpenAPI spec for GitHub.com
47
const handleRefs = (obj) => {
48
if (typeof obj !== "object" || obj === null) return obj;
49
50
for (let key of Object.keys(obj)) {
51
+ if (key === "enterprise" && file === "api.github.com.json") {
52
+ delete obj[key];
53
+ }
54
if (key === "$ref" && typeof obj[key] === "string") {
55
const ref = obj[key].split("/").at(-1);
56
tempSchema.components.schemas[ref] = schema.components.schemas[ref];
0 commit comments