marquez icon indicating copy to clipboard operation
marquez copied to clipboard

openapi.yaml Spec Positional Parameters

Open ghost opened this issue 1 year ago • 2 comments

Hi.

I'm trying to use oapi-codegen to generate a Go client library for Marquez 0.40.0. When I run oapi-codegen -generate client -package client api/spec.yaml > client.go, I get this error:

error generating code: error creating operation definitions: path '/namespaces/{namespace}/datasets' has 1 positional parameters, but spec has 2 declared

Looking into the spec file, the error appears valid, as there is one parameter in the path with braces and two in the array below. Am I missing something here?

https://github.com/MarquezProject/marquez/blame/0.40.0/spec/openapi.yml#L254C1-L257C1

Thanks

ghost avatar Aug 24 '23 17:08 ghost

Thanks for opening your first issue in the Marquez project! Please be sure to follow the issue template!

boring-cyborg[bot] avatar Aug 24 '23 17:08 boring-cyborg[bot]

I imported this URL into the swagger editor and got linting errors:

https://raw.githubusercontent.com/MarquezProject/marquez/0.40.0/spec/openapi.yml

Is this expected? Screenshot 2023-08-28 at 12 54 29 PM

josdotso avatar Aug 28 '23 16:08 josdotso