-
Notifications
You must be signed in to change notification settings - Fork 42.1k
chore: NODE-3557 - Generate Schema Files (no-changelog) #19018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 issues found across 85 files
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai
to give feedback, ask questions, or re-run the review.
@@ -33,6 +33,22 @@ | |||
"kind": { | |||
"type": "string" | |||
}, | |||
"localizations": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localizations defines only the 'en' key, leaving other locale keys unconstrained; model all locales with patternProperties or additionalProperties so each locale maps to { title, description }.
(Based on your team's feedback about keeping review comments concise, this focuses on the specific schema shape change.)
Prompt for AI agents
Address the following comment on packages/nodes-base/nodes/Google/YouTube/__schema__/v1.0.0/video/get.json at line 36:
<comment>localizations defines only the 'en' key, leaving other locale keys unconstrained; model all locales with patternProperties or additionalProperties so each locale maps to { title, description }.
(Based on your team's feedback about keeping review comments concise, this focuses on the specific schema shape change.)</comment>
<file context>
@@ -33,6 +33,22 @@
"kind": {
"type": "string"
},
+ "localizations": {
+ "type": "object",
+ "properties": {
</file context>
"type": "null" | ||
}, | ||
"SystemModstamp": { | ||
"error": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing the account GET schema with an error string field is inconsistent with other GET schemas and likely incorrect; GET schemas enumerate object fields, not an error-only shape.
(Based on your team's feedback about not assuming prior response shape, I verified by comparing other Salesforce get.json schemas and searching the repo for error fields in get.json.)
Prompt for AI agents
Address the following comment on packages/nodes-base/nodes/Salesforce/__schema__/v1.0.0/account/get.json at line 4:
<comment>Replacing the account GET schema with an error string field is inconsistent with other GET schemas and likely incorrect; GET schemas enumerate object fields, not an error-only shape.
(Based on your team's feedback about not assuming prior response shape, I verified by comparing other Salesforce get.json schemas and searching the repo for error fields in get.json.)</comment>
<file context>
@@ -1,56 +1,9 @@
- "type": "null"
- },
- "SystemModstamp": {
+ "error": {
"type": "string"
}
</file context>
"id": { | ||
"type": "string" | ||
}, | ||
"preferredLanguage": { | ||
"type": "null" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preferredLanguage is constrained to null-only; it should allow string (and optionally null) to match the expected user resource contract and avoid rejecting valid values.
Prompt for AI agents
Address the following comment on packages/nodes-base/nodes/Microsoft/Entra/__schema__/v1.0.0/user/create.json at line 23:
<comment>preferredLanguage is constrained to null-only; it should allow string (and optionally null) to match the expected user resource contract and avoid rejecting valid values.</comment>
<file context>
@@ -16,15 +16,15 @@
"type": "string"
},
+ "preferredLanguage": {
+ "type": "null"
+ },
"userPrincipalName": {
</file context>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
No description provided.