Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Get an incomprehensible error on generation #36

Open
defgenx opened this issue Dec 15, 2020 · 3 comments
Open

Get an incomprehensible error on generation #36

defgenx opened this issue Dec 15, 2020 · 3 comments

Comments

@defgenx
Copy link

defgenx commented Dec 15, 2020

I am trying to generate Go code from an OpenAPI 3 file and it just crash. I don't have any hint. Someone can help me (it does the same when I use the local file) ?

gnostic --resolve-refs --go-generator-out=./gen https://raw.githubusercontent.com/Terminal49/t49-api-documentation/master/docs/reference/terminal49/terminal49.v1.json
Errors reading https://raw.githubusercontent.com/Terminal49/t49-api-documentation/master/docs/reference/terminal49/terminal49.v1.json
Plugin error: [client.go:24:26: expected '(', found '-' (and 4 more errors) server.go:28:15: expected '(', found '-' (and 10 more errors) provider.go:14:4: expected ';', found '-' (and 1 more errors) types.go:226:9: expected type, found '-' (and 10 more errors)]
@tomaxsas
Copy link

tomaxsas commented Jan 22, 2021

same here with default openapi petstore example

[zalent@zalent go-xstream]$ gnostic petstore.yaml --go-client-out=gnpet
Errors reading petstore.yaml
Plugin error: [types.go:111:36: expected ';', found '[' (and 1 more errors)]

@henrikrudstrom
Copy link

same

@skymeyer
Copy link

For me this was caused by using additionalProperties in my openapi spec.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants