Skip to content

error when using config file #1034

@Tloe

Description

@Tloe

I am running the generator with a config style and getting this error:

 ~/dev/pro/authly-core/in/api/openapi │ master  oapi-codegen -config config.yaml serviceapi.yaml
error parsing configuration style as old version or new version: <nil>

Looking at the code the logic seems a bit of? It also prints err which isn't the one it checks?
https://github.com/deepmap/oapi-codegen/blob/fd06f5aed35010af41fe12a17a0f75e16404af81/cmd/oapi-codegen/oapi-codegen.go#L156

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions