-
Notifications
You must be signed in to change notification settings - Fork 28
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
refactor: cleanup public symbols and rename transform package #971
Changes from 7 commits
f41b900
5ef6742
ca757ff
8ac3c78
3598dbc
f0bb087
61aa9fc
a4e6057
a1d542d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"id": "2652a0e3-6588-4542-a35d-eafd5adf8c77", | ||
"type": "misc", | ||
"description": "Refactor codegen to place serialization and serialization into the `serde` package rather than the `transform` package. Relocate `TlsVersion` to the `net` package. Make `ByteArrayContent` and friends `internal` and force consumers to go through companion object convenience functions." | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate changelog There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm wonder how that happened 🤔 , good catch. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"id": "bd8a575c-ecec-4744-bde6-44f8900d573d", | ||
"type": "misc", | ||
"description": "Refactor codegen to place serialization and serialization into the `serde` package rather than the `transform` package. Relocate `TlsVersion` to the package. Make `ByteArrayContent` and friends `internal` and force consumers to go through companion object convenience functions." | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,9 +127,9 @@ abstract class HttpProtocolClientGenerator( | |
} | ||
|
||
protected open fun importSymbols(writer: KotlinWriter) { | ||
writer.addImport("${ctx.settings.pkg.name}.model", "*") | ||
writer.addImport(ctx.settings.pkg.subpackage("model"), "*") | ||
if (TopDownIndex(ctx.model).getContainedOperations(ctx.service).isNotEmpty()) { | ||
writer.addImport("${ctx.settings.pkg.name}.transform", "*") | ||
writer.addImport(ctx.settings.pkg.serde, "*") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this still reference the package name somewhere? I was thinking it would be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
val defaultClientSymbols = setOf( | ||
|
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.
I'd vote for splitting these unrelated changes out into separate changelog entries