-
Notifications
You must be signed in to change notification settings - Fork 23
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 OpenAPI spec #160
Update OpenAPI spec #160
Conversation
{{- define "type-unboxed" -}} | ||
{{- if .IsBool}}boolean | ||
{{- else if .IsInt64}}long | ||
{{- else if .IsFloat64}}double |
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.
good catch
{{ else }} | ||
Any types that have no fields (i.e. primitives or array types) or are not enums are not represented by distinct Java | ||
types in the Java SDK. | ||
{{skipThisFile}} |
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.
This would prevent generation of WorkspaceId.java and other files right?
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.
Correct. That's why several files disappear from the .gitattributes file.
.codegen.json
Outdated
@@ -19,6 +22,7 @@ | |||
}, | |||
"toolchain": { | |||
"require": ["mvn", "java"], | |||
"setup": ["rm -rf databricks-sdk-java/src/main/java/com/databricks/sdk/service"], |
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.
What is this for? Do we want to use the force flag?
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.
True, we can just use -r
.
* string of utf-8 characters. The value can be an empty string, with maximum length of 255 | ||
* characters. The key can be of maximum length of 127 characters, and cannot be empty. | ||
*/ | ||
// type CustomTags Map<String,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.
Since these were never used, this change shouldn't be breaking right?
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.
Correct.
Changes
Update of the OpenAPI spec. This also introduces the template_libraries field being added in databricks/databricks-sdk-go#635.
This PR contains some other changes:
float
/Float
todouble
/Double
. OpenAPI specs currently specifyformat: "double"
for all non-integral numeric values.Tests
Added AccountMetastoreAssignmentsIT to verify the correct functionality of the updated AccountMetastoreAssignments API.
Nightly tests passed on this PR.