Skip to content

: main.go:5274:150: expected ';', found time (and 10 more errors) #2041

@mitchellston

Description

@mitchellston

Hello,

When I run the command go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config restgen.yml schema.yml the entire generated file gets dumped with at the end the following: ": main.go:5274:150: expected ';', found time (and 10 more errors)"

restgen.yml: (config)

generate:
  client: true
  models: true
output: generated/client.go
package: generated

schema.yml: https://rmg4-openapi-documentation.s3.amazonaws.com/1.6.16/oas.yml (open api schema)

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