forked from zio/zio-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'zio:main' into fix/mimetype-binary-handling
- Loading branch information
Showing
40 changed files
with
3,535 additions
and
168 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file was autogenerated using `zio-sbt-website` via `sbt generateGithubWorkflow` | ||
# This file was autogenerated using `zio-sbt-website` via `sbt generateGithubWorkflow` | ||
# task and should be included in the git repository. Please do not edit it manually. | ||
|
||
name: Website | ||
|
@@ -23,6 +23,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
- uses: coursier/setup-action@v1 | ||
- name: Setup Scala | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -48,6 +49,7 @@ jobs: | |
distribution: temurin | ||
java-version: 17 | ||
check-latest: true | ||
- uses: coursier/setup-action@v1 | ||
- name: Setup NodeJs | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -67,6 +69,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- uses: coursier/setup-action@v1 | ||
- name: Install libuv | ||
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | ||
- name: Setup 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package test.component | ||
|
||
import zio.prelude.Newtype | ||
import zio.schema.Schema | ||
import java.util.UUID | ||
|
||
object Key extends Newtype[UUID] { | ||
implicit val schema: Schema[Key.Type] = Schema.primitive[UUID].transform(wrap, unwrap) | ||
} |
36 changes: 36 additions & 0 deletions
36
zio-http-gen/src/test/resources/inline_schema_alias_only_as_key_schema.yaml
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,36 @@ | ||
info: | ||
title: Dummy Service | ||
version: 0.0.1 | ||
servers: | ||
- url: http://127.0.0.1:5000/ | ||
tags: | ||
- name: Dummy_API | ||
paths: | ||
/api/text_by_key: | ||
get: | ||
operationId: text_by_key | ||
description: Get a dictionary mapping keys to text | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ObjectWithDictionary' | ||
description: OK | ||
openapi: 3.0.3 | ||
components: | ||
schemas: | ||
Key: | ||
type: string | ||
format: uuid | ||
ObjectWithDictionary: | ||
type: object | ||
required: | ||
- dict | ||
properties: | ||
dict: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
x-string-key-schema: | ||
$ref: '#/components/schemas/Key' |
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
Oops, something went wrong.