-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update Juno SDK files #42
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.
Disclaimer: This comment was AI-generated and is not necessarily completely accurate. Please take code comments with a grain of salt.
PR Summary
This PR standardizes formatting across the Juno SDK codebase, focusing on consistent indentation, spacing, and quote styles.
- Modified all API and model files with consistent 4-space indentation instead of 2-space indentation
- Changed attribute type maps to use double quotes instead of single quotes throughout model files
- Consolidated multi-line imports into more compact single-line imports in API files
- Removed
ProjectResponses
export and import frommodels.ts
which could potentially break dependent code - Added consistent blank lines at the end of files for better git compatibility
PR Checklist ✅
General
- ❌ Avoids unused imports, variables, or functions - The removal of
ProjectResponses
from models.ts could break dependent code
Your PR score is 95/100. The formatting changes are well-executed and consistent, but the removal of ProjectResponses
should be verified to ensure it doesn't break existing functionality.
💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!
44 file(s) reviewed, 20 comment(s)
Edit PR Review Bot Settings | Greptile
} | ||
} else { | ||
if (basePathOrUsername) { | ||
this.basePath = basePathOrUsername |
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.
syntax: Missing semicolon at the end of this line
this.basePath = basePathOrUsername | |
this.basePath = basePathOrUsername; |
} | ||
} else { | ||
if (basePathOrUsername) { | ||
this.basePath = basePathOrUsername |
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.
syntax: Missing semicolon at the end of this line
this.basePath = basePathOrUsername | |
this.basePath = basePathOrUsername; |
this.basePath = basePathOrUsername | ||
} |
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.
syntax: Missing semicolon at the end of this line
'API_Key': new HttpBearerAuth(), | ||
} |
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.
syntax: Missing semicolon after object declaration
let authenticationPromise = Promise.resolve(); | ||
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); | ||
|
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.
logic: Authentication is only applying the default auth, but not checking if API_Key.accessToken exists like in other API files (e.g., authApi.ts)
export enum TypeEnum { | ||
_0 = <any> '0', | ||
_1 = <any> '1', | ||
_12 = <any> '-1' |
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.
style: The enum value '_12' is named inconsistently with its value '-1'. Consider renaming to '_MINUS_1' for clarity and consistency with other model files like userResponse.ts.
"name": "data", | ||
"baseName": "data", | ||
"type": "string" | ||
} ]; |
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.
style: The closing bracket of the array is on the same line as the last object entry, which is inconsistent with the opening bracket style on line 23. Consider moving it to a new line for better readability.
"name": "dkim2", | ||
"baseName": "dkim2", | ||
"type": "SendGridDNSRecord" | ||
} ]; |
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.
style: There's an extra closing bracket ']' at the end of this line that should be on its own line for better readability.
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ | ||
{ | ||
"name": "mailCname", | ||
"baseName": "mail_cname", | ||
"type": "SendGridDNSRecord" | ||
}, | ||
{ | ||
"name": "dkim1", | ||
"baseName": "dkim1", | ||
"type": "SendGridDNSRecord" | ||
}, | ||
{ | ||
"name": "dkim2", | ||
"baseName": "dkim2", | ||
"type": "SendGridDNSRecord" | ||
} ]; |
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.
style: The formatting of this array is inconsistent with TypeScript best practices. Consider using consistent quotes (either single or double) throughout the codebase.
"name": "projectIds", | ||
"baseName": "projectIds", | ||
"type": "Array<number>" | ||
} ]; |
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.
style: There's an extra closing bracket at the end of line 64 that's attached to the array declaration without proper spacing. This should be on a new line for better readability.
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.
most changes are only a result of prettier not being run on it
Update Juno SDK files