Exclude some more schemas

This commit is contained in:
Rory& 2025-10-24 00:47:11 +02:00
parent c168b8faf9
commit 7a7ccbe291
2 changed files with 74 additions and 2 deletions

View File

@ -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});

View File

@ -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"
}
]
}