-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/ignore-clrf-after-last-multipart-boundary
- Loading branch information
Showing
25 changed files
with
1,086 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
zio-http-gen/src/main/scala/zio/http/gen/openapi/Config.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package zio.http.gen.openapi | ||
|
||
final case class Config(commonFieldsOnSuperType: Boolean) | ||
object Config { | ||
|
||
val default: Config = Config( | ||
commonFieldsOnSuperType = false, | ||
) | ||
|
||
lazy val config: zio.Config[Config] = | ||
zio.Config | ||
.boolean("common-fields-on-super-type") | ||
.withDefault(Config.default.commonFieldsOnSuperType) | ||
.map(Config.apply) | ||
} |
Oops, something went wrong.