Skip to content

Commit

Permalink
Update README to match the new syntax (#630)
Browse files Browse the repository at this point in the history
This patch from 2 weeks ago changed the config syntax:

c0f382b

however, no change was made to the README. This fixes it, already confused few people I assume :)

Cheers

Co-authored-by: Marcin Romaszewicz <47459980+deepmap-marcinr@users.noreply.github.com>
  • Loading branch information
lzap and deepmap-marcinr committed Jul 25, 2022
1 parent 35014f7 commit dc42f6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -678,16 +678,18 @@ file via the `--config` option. Please see the test under
for an example. The structure of the file is as follows:

```yaml
output:
externalref.gen.go
package: externalref
generate:
models: true
embedded-spec: true
output-options:
skip-prune: true
import-mapping:
./packageA/spec.yaml: github.com/deepmap/oapi-codegen/internal/test/externalref/packageA
./packageB/spec.yaml: github.com/deepmap/oapi-codegen/internal/test/externalref/packageB
output: externalref.gen.go
output-options:
skip-prune: true
```

Have a look at [`cmd/oapi-codegen/oapi-codegen.go`](https://github.com/deepmap/oapi-codegen/blob/master/cmd/oapi-codegen/oapi-codegen.go#L48)
Expand Down

0 comments on commit dc42f6a

Please sign in to comment.