Skip to content

Commit 601f9f4

Browse files
Add disclaimer to each example README (#453)
### Motivation As we approach 1.0, we want more examples of how to use this package and integrate with other packages in the ecosystem. However, these are deliberately meant to be illustrative, and are often deliberately not fully-featured. #445 added a disclaimer to the REAMDE in the Examples directory, but we should remind folks in each of the per-example README files. ### Modifications Add disclaimer to each example README. ### Result Docs clearer. ### Test Plan None.
1 parent e90bb2c commit 601f9f4

File tree

20 files changed

+40
-0
lines changed

20 files changed

+40
-0
lines changed

Examples/AuthenticationClientMiddleware/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this example we'll implement a `ClientMiddleware` that injects an authentication header into the request.
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
This example extends the [HelloWorldURLSessionClient](../HelloWorldURLSessionClient)

Examples/AuthenticationServerMiddleware/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
In this example we'll implement a `ServerMiddleware` that verifies an authentication header in the request.
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
This example extends the [HelloWorldVaporServer](../HelloWorldVaporServer) with a new target, `AuthenticationServerMiddleware`, which is then used when registering the server handler with the transport.

Examples/CommandLineClient/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A command-line tool using Swift Argument Parser that shows using a generated client to make a request to the Greeting Service running on `http://localhost:8080`.

Examples/CommandPluginInvocationClient/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A command-line tool that uses a generated client to make a request to the Greeting Service running on `http://localhost:8080`.

Examples/ContentTypesClient/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A command-line tool that uses a generated client to show how to work with various HTTP content types.

Examples/ContentTypesServer/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A server that uses generated server stubs to show how to work with various HTTP content types.

Examples/CuratedLibraryClient/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A library package that shows wrapping a generated client to make a request to the Greeting Service running on `http://localhost:8080`.

Examples/HelloWorldAsyncHTTPClient/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A "hello world" command-line tool that uses a generated client to make a request to the Greeting Service running on `http://localhost:8080`.

Examples/HelloWorldHummingbirdServer/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A "hello world" server that uses generated server stubs to handle requests as the Greeting Service.

Examples/HelloWorldURLSessionClient/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An example project using [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).
44

5+
> **Disclaimer:** This example is deliberately simplified and is intended for illustrative purposes only.
6+
57
## Overview
68

79
A "hello world" command-line tool that uses a generated client to make a request to the Greeting Service running on `http://localhost:8080`.

0 commit comments

Comments
 (0)