Skip to content

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

@willbuckner

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/oapi-codegen@v2.3.0
~/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.

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