Skip to content

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

Closed

Description

@willbuckner

One of the error outputs doesn't print a newline before exiting, resulting in ugly behavior in CI.

Seen from 1.3.x all the way to 2.3.x.

~/dev/myproject ❱ will/test-branch *<> ❱ go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]
~/dev/myproject ❱ will/test-branch *<> ❱ oapi-codegen -generate types,client -package myproject <(cargo run  --bin openapi-schema -- json) >/dev/null
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.53s
     Running `target/debug/openapi-schema json`
error loading swagger spec in /dev/fd/63
: map key "SomeMapKey" not found~/dev/myproject ❱ will/test-branch *<> ❱

I will send a PR for this shortly.

Activity

  1. added 2 commits that reference this issue on Jul 9, 2024
    5a902f7
    3be7e20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions