Skip to content

Conversation

@willbuckner
Copy link
Contributor

Before:

$ go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]
$ oapi-codegen -generate types,client -package myproject spec.json >/dev/null
error loading swagger spec in spec.json
: map key "SomeMapKey" not found$

After:

$ go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]
$ oapi-codegen -generate types,client -package myproject spec.json >/dev/null
error loading swagger spec in spec.json
: map key "SomeMapKey" not found
$

Closes #1688

@willbuckner willbuckner requested a review from a team as a code owner July 5, 2024 18:53
@jamietanna jamietanna added the bug Something isn't working label Jul 6, 2024
@jamietanna jamietanna self-requested a review July 6, 2024 09:31
willbuckner and others added 2 commits July 9, 2024 10:25
Before:

```
$ oapi-codegen -generate types,client -package myproject spec.json >/dev/null
error loading swagger spec in spec.json
: map key "SomeMapKey" not found$
```

After:

```
$ oapi-codegen -generate types,client -package myproject spec.json >/dev/null
error loading swagger spec in spec.json
: map key "SomeMapKey" not found
$
```

Closes oapi-codegen#1688
As a longer term fix for oapi-codegen#1688 to make sure that we always have a
newline.
@jamietanna jamietanna force-pushed the will/fix-missing-error-newline branch from b780589 to 3be7e20 Compare July 9, 2024 09:28
@jamietanna
Copy link
Member

Thanks!

@jamietanna jamietanna enabled auto-merge (rebase) July 9, 2024 09:28
@jamietanna jamietanna merged commit 309b11f into oapi-codegen:main Jul 9, 2024
@willbuckner willbuckner deleted the will/fix-missing-error-newline branch July 9, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error output for "map key not found" errors missing trailing newline.

2 participants