From 7a7ccbe291bc93e077975e098968a07bab7216f9 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 24 Oct 2025 00:47:11 +0200 Subject: [PATCH] Exclude some more schemas --- scripts/schema.js | 7 ++++ scripts/schemaExclusions.json | 69 ++++++++++++++++++++++++++++++++++- 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/scripts/schema.js b/scripts/schema.js index e5e52dea..4d62f91f 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -96,6 +96,13 @@ const excludedLambdas = [ return true; } }, + (n, s) => { + if (s.properties && Object.keys(s.properties).every(x=> x[0] === x[0].toUpperCase())) { + console.log(`\r${redBright("[WARN]")} Omitting schema ${n} as all its properties have uppercase characters.`); + exclusionList.auto.push({ value: n, reason: "Schema with only uppercase properties" }); + return true; + } + } // (n, s) => { // if (JSON.stringify(s).length <= 300) { // console.log({n, s}); diff --git a/scripts/schemaExclusions.json b/scripts/schemaExclusions.json index 795e4547..8eb7955f 100644 --- a/scripts/schemaExclusions.json +++ b/scripts/schemaExclusions.json @@ -18,13 +18,38 @@ "SMTPConnection.CustomAuthenticationResponse", "TransportMakeRequestResponse", "StaticSchema", - "CSVImportResponse" + "CSVImportResponse", + "NewMultipleMembersResponse", + "EventsResponse", + "NotificationAPIResponse", + "MetricsAPIResponse", + "ValidationResponse", + "MultipleValidationJobsListResponse", + "UpdateRouteResponse", + "MessagesSendAPIResponse", + "APIWebhook", + "WebhookResponse", + "WebhookValidationResponse", + "MessageResponse", + "ConnectionSettingsResponse", + "UpdatedDKIMSelectorResponse", + "UpdatedWebPrefixResponse", + "APIResponse", + "APIErrorOptions", + "APIErrorType", + "ListTagsForResourceResponse", + "GetContactResponse", + "LibraryResponse", + "LibraryLocalResponse" ], "manualRe": [ ".*\\.Response$", "^(Http2Server|Server|Express|(Resolved|)Http|Client|_|)Response$", ".*\\..*", - "^Axios.*", + "^Axios", + "^Internal", + "^Record<", + "^Omit<", "^ListContact(s|Lists)Response$", "^APIKeyConfiguration\\..*", "^AccountSetting\\..*", @@ -340,6 +365,46 @@ { "value": "UpdatedDKIMAuthorityResponse", "reason": "Uses import()" + }, + { + "value": "ListRecipientResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "TemplateResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "TemplateDetailContentResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "EventCallbackUrlResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "ParseRouteResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "SenderResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "MetaSenderResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "ApiKeyResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "MyProfileResponse", + "reason": "Schema with only uppercase properties" + }, + { + "value": "UserResponse", + "reason": "Schema with only uppercase properties" } ] } \ No newline at end of file