docs: remove `deepmap/oapi-codegen` references · oapi-codegen/oapi-codegen@58c7894 · GitHub
Skip to content

Commit 58c7894

Browse files
Jamie Tannajamietanna
authored andcommitted
docs: remove deepmap/oapi-codegen references
To make it easier to find i.e. references to change in pending PRs, from before the org move.
1 parent 58a5d2d commit 58c7894

14 files changed

Lines changed: 50 additions & 50 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Which then means you can invoke it like so:
7878

7979
### Pinning to commits
8080

81-
While the project does not ([yet](https://github.com/deepmap/oapi-codegen/issues/1519)) have a defined release cadence, there may be cases where you want to pull in yet-unreleased changes to your codebase.
81+
While the project does not ([yet](https://github.com/oapi-codegen/oapi-codegen/issues/1519)) have a defined release cadence, there may be cases where you want to pull in yet-unreleased changes to your codebase.
8282

8383
Therefore, you may want to pin your dependency on `oapi-codegen` to a given commit hash, rather than a tag.
8484

@@ -91,7 +91,7 @@ To do so, you can run:
9191
```sh
9292
# pin to the latest version on the default branch
9393
$ go get github.com/oapi-codegen/oapi-codegen/v2@main
94-
# alternatively, to a commit hash i.e. https://github.com/deepmap/oapi-codegen/commit/71e916c59688a6379b5774dfe5904ec222b9a537
94+
# alternatively, to a commit hash i.e. https://github.com/oapi-codegen/oapi-codegen/commit/71e916c59688a6379b5774dfe5904ec222b9a537
9595
$ go get github.com/oapi-codegen/oapi-codegen/v2@71e916c59688a6379b5774dfe5904ec222b9a537
9696
```
9797

@@ -372,7 +372,7 @@ We can see that this provides the best means to focus on the implementation of t
372372
- Single-file output
373373
- Support multiple OpenAPI files by having a package-per-OpenAPI file
374374
- Support of OpenAPI 3.0
375-
- OpenAPI 3.1 support is [awaiting upstream support](https://github.com/deepmap/oapi-codegen/issues/373)
375+
- OpenAPI 3.1 support is [awaiting upstream support](https://github.com/oapi-codegen/oapi-codegen/issues/373)
376376
- Note that this does not include OpenAPI 2.0 (aka Swagger)
377377
- Extract parameters from requests, to reduce work required by your implementation
378378
- Implicit `additionalProperties` are ignored by default ([more details](#additional-properties-additionalproperties))
@@ -1502,7 +1502,7 @@ You can see a little more detail of the generated code in the ["What does it loo
15021502
> To configure the strict server generation, you must specify another server to be generated. For instance:
15031503
15041504
```yaml
1505-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
1505+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
15061506
package: api
15071507
generate:
15081508
# NOTE another server must be added!
@@ -1577,7 +1577,7 @@ components:
15771577
And a `cfg.yaml`:
15781578

15791579
```yaml
1580-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
1580+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
15811581
package: client
15821582
output: client.gen.go
15831583
generate:
@@ -1744,7 +1744,7 @@ paths:
17441744
content:
17451745
application/json:
17461746
# NOTE that this anonymous object is /not/ generated because it's an anonymous, but would be generated if using `generate: client`
1747-
# See https://github.com/deepmap/oapi-codegen/issues/1512
1747+
# See https://github.com/oapi-codegen/oapi-codegen/issues/1512
17481748
schema:
17491749
type: object
17501750
properties:
@@ -1777,7 +1777,7 @@ components:
17771777
And a `cfg.yaml`:
17781778

17791779
```yaml
1780-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
1780+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
17811781
package: onlymodels
17821782
output: only-models.gen.go
17831783
generate:
@@ -1806,7 +1806,7 @@ type Client struct {
18061806
If you wish to also generate the `Unreferenced` type, you would need the following `cfg.yaml`:
18071807

18081808
```yaml
1809-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
1809+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
18101810
package: onlymodels
18111811
output: only-models.gen.go
18121812
generate:
@@ -1895,7 +1895,7 @@ components:
18951895
And finally we have our configuration file:
18961896

18971897
```yaml
1898-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
1898+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
18991899
# admin/cfg.yaml
19001900
package: admin
19011901
output: server.gen.go
@@ -1917,7 +1917,7 @@ error generating code: error creating operation definitions: error generating re
19171917
This is because `oapi-codegen` requires:
19181918

19191919
```yaml
1920-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
1920+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
19211921
package: admin
19221922
output: server.gen.go
19231923
generate:
@@ -2029,7 +2029,7 @@ actions:
20292029
And our configuration file for `oapi-codegen`:
20302030

20312031
```yaml
2032-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
2032+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
20332033
package: api
20342034
output: ping.gen.go
20352035
generate:
@@ -2077,7 +2077,7 @@ However, you lose the ability to understand the three cases, as there's no way t
20772077
- is this field `null`? (Can be checked with `S.Field == nil`)
20782078
- does this field have a value? (`S.Field != nil && *S.Field == "123"`)
20792079

2080-
As of `oapi-codegen` [v2.1.0](https://github.com/deepmap/oapi-codegen/releases/tag/v2.1.0) it is now possible to represent this with the `nullable.Nullable` type from [our new library, oapi-codegen/nullable](https://github.com/oapi-codegen/nullable).
2080+
As of `oapi-codegen` [v2.1.0](https://github.com/oapi-codegen/oapi-codegen/releases/tag/v2.1.0) it is now possible to represent this with the `nullable.Nullable` type from [our new library, oapi-codegen/nullable](https://github.com/oapi-codegen/nullable).
20812081

20822082
If you configure your generator's Output Options to opt-in to this behaviour, as so:
20832083

@@ -3021,7 +3021,7 @@ Middleware library
30213021
</table>
30223022

30233023
> [!NOTE]
3024-
> It is [not currently possible](https://github.com/deepmap/oapi-codegen/issues/1038) to validate the HTTP response with a middleware.
3024+
> It is [not currently possible](https://github.com/oapi-codegen/oapi-codegen/issues/1038) to validate the HTTP response with a middleware.
30253025
30263026
> [!NOTE]
30273027
> We're also [exploring](https://github.com/oapi-codegen/exp/issues/1) the use of [libopenapi-validator](https://github.com/pb33f/libopenapi-validator/) for request/response validation middleware
@@ -3037,7 +3037,7 @@ If you're using a specification with [Security Schemes](https://spec.openapis.or
30373037
>
30383038
> To perform authentication, you will need to use the [validation middleware](#request-response-validation-middleware).
30393039
>
3040-
> In the future, we plan to [implement server-side validation in the generated code](https://github.com/deepmap/oapi-codegen/issues/1524)
3040+
> In the future, we plan to [implement server-side validation in the generated code](https://github.com/oapi-codegen/oapi-codegen/issues/1524)
30413041
30423042
To see how this can work, check out the [authenticated API example](examples/authenticated-api/echo).
30433043

@@ -3091,7 +3091,7 @@ You can specify, through your configuration file, the `output-options.user-templ
30913091
Within your configuration file, you can specify relative or absolute paths to a file to reference for the template, such as:
30923092

30933093
```yaml
3094-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
3094+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
30953095
# ...
30963096
output-options:
30973097
user-templates:
@@ -3112,23 +3112,23 @@ It is also possible to use HTTPS URLs.
31123112
>
31133113
> See [this blog post](https://www.jvt.me/posts/2024/04/27/github-actions-update-file/) for an example of how to use GitHub Actions to manage the updates of files across repos
31143114
>
3115-
> This will be disabled by default (but possible to turn back on via configuration) [in the future](https://github.com/deepmap/oapi-codegen/issues/1564)
3115+
> This will be disabled by default (but possible to turn back on via configuration) [in the future](https://github.com/oapi-codegen/oapi-codegen/issues/1564)
31163116

31173117
To use it, you can use the following configuration:
31183118

31193119
```yaml
3120-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
3120+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
31213121
# ...
31223122
output-options:
31233123
user-templates:
31243124
# The following are referencing a version of the default client-with-responses.tmpl file, but loaded in through GitHub's raw.githubusercontent.com. The general form to use raw.githubusercontent.com is as follows https://raw.githubusercontent.com/<username>/<project>/<commitish>/path/to/template/template.tmpl
31253125
31263126
# Alternatively using raw.githubusercontent.com with a hash
3127-
client-with-responses.tmpl: https://raw.githubusercontent.com/deepmap/oapi-codegen/ad5eada4f3ccc28a88477cef62ea21c17fc8aa01/pkg/codegen/templates/client-with-responses.tmpl
3127+
client-with-responses.tmpl: https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/ad5eada4f3ccc28a88477cef62ea21c17fc8aa01/pkg/codegen/templates/client-with-responses.tmpl
31283128
# Alternatively using raw.githubusercontent.com with a tag
3129-
client-with-responses.tmpl: https://raw.githubusercontent.com/deepmap/oapi-codegen/v2.1.0/pkg/codegen/templates/client-with-responses.tmpl
3129+
client-with-responses.tmpl: https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.1.0/pkg/codegen/templates/client-with-responses.tmpl
31303130
# Alternatively using raw.githubusercontent.com with a branch
3131-
client-with-responses.tmpl: https://raw.githubusercontent.com/deepmap/oapi-codegen/master/pkg/codegen/templates/client-with-responses.tmpl
3131+
client-with-responses.tmpl: https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/master/pkg/codegen/templates/client-with-responses.tmpl
31323132
```
31333133

31343134
> [!WARNING]
@@ -3139,7 +3139,7 @@ output-options:
31393139
It's also possible to set the templates inline in the configuration file:
31403140

31413141
```yaml
3142-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
3142+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
31433143
# ...
31443144
output-options:
31453145
user-templates:
@@ -3157,7 +3157,7 @@ output-options:
31573157
31583158
### Using the Go package
31593159
3160-
Alternatively, you are able to use the underlying code generation as a package, which [will be documented in the future](https://github.com/deepmap/oapi-codegen/issues/1487).
3160+
Alternatively, you are able to use the underlying code generation as a package, which [will be documented in the future](https://github.com/oapi-codegen/oapi-codegen/issues/1487).
31613161
31623162
## Additional Properties (`additionalProperties`)
31633163

@@ -3166,7 +3166,7 @@ Alternatively, you are able to use the underlying code generation as a package,
31663166
For simplicity, and to remove a fair bit of duplication and boilerplate, `oapi-codegen` decides to ignore the implicit `additionalProperties: true`, and instead requires you to specify the `additionalProperties` key to generate the boilerplate.
31673167

31683168
> [!NOTE]
3169-
> In the future [this will be possible](https://github.com/deepmap/oapi-codegen/issues/1514) to disable this functionality, and honour the implicit `additionalProperties: true`
3169+
> In the future [this will be possible](https://github.com/oapi-codegen/oapi-codegen/issues/1514) to disable this functionality, and honour the implicit `additionalProperties: true`
31703170

31713171
Below you can see some examples of how `additionalProperties` affects the generated code.
31723172

@@ -3789,7 +3789,7 @@ components:
37893789
- id
37903790

37913791
# allOf performs a union of all types defined, but if there's a duplicate field defined, it'll be overwritten by the last schema
3792-
# https://github.com/deepmap/oapi-codegen/issues/1569
3792+
# https://github.com/oapi-codegen/oapi-codegen/issues/1569
37933793
IdentityWithDuplicateField:
37943794
allOf:
37953795
# `issuer` will be ignored
@@ -4024,7 +4024,7 @@ By default, `oapi-codegen` will generate everything from the specification.
40244024
If you'd like to reduce what's generated, you can use one of a few options in [the configuration file](#usage) to tune the generation of the resulting output:
40254025

40264026
```yaml
4027-
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
4027+
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
40284028
output-options:
40294029
include-tags: []
40304030
exclude-tags: []
@@ -4061,9 +4061,9 @@ We'll be aware of the issue, and will work to update both the core `oapi-codegen
40614061

40624062
## Sponsors
40634063

4064-
For the most part, `oapi-codegen` is maintained in two busy peoples' free time. As noted in [Creating a more sustainable model for `oapi-codegen` in the future](https://github.com/deepmap/oapi-codegen/discussions/1606), we're looking to make this a more sustainable project in the future.
4064+
For the most part, `oapi-codegen` is maintained in two busy peoples' free time. As noted in [Creating a more sustainable model for `oapi-codegen` in the future](https://github.com/oapi-codegen/oapi-codegen/discussions/1606), we're looking to make this a more sustainable project in the future.
40654065

4066-
We're very appreciative of [the many contributors over the years](https://github.com/deepmap/oapi-codegen/graphs/contributors) and the ongoing use of the project 💜
4066+
We're very appreciative of [the many contributors over the years](https://github.com/oapi-codegen/oapi-codegen/graphs/contributors) and the ongoing use of the project 💜
40674067

40684068
Please consider sponsoring us through GitHub Sponsors either [on the organisation](https://github.com/sponsors/oapi-codegen/) or [directly for Jamie](https://github.com/sponsors/jamietanna/), which helps work towards us being able to maintain the project long term.
40694069

cmd/oapi-codegen/oapi-codegen.go

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)