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
|