apigee / apigee-go-gen

Apache License 2.0
4 stars 3 forks source link

render apiproxy is erroring with a PostClientFlow #10

Closed carlosmscabral closed 1 month ago

carlosmscabral commented 4 months ago

Using the following command:

apigee-go-gen render apiproxy --template ./template/apiproxy.yaml \ --set-oas spec=./productOrdering-v2.yaml \ --include ./template/*.tmpl \ --output ./out/apiproxies/productOrdering-v2

I receive the following error message:

Error: unknown node "PostClientFlow" found at "Root.ProxyEndpoints.0.ProxyEndpoint(name: default)"

It seems that PostClientFlows are not well understood by the tool.

The full template is below:

APIProxy: .revision: 1 .name: teste DisplayName: {{$.Values.spec.info.title}} Description: {{$.Values.spec.info.description}}

BasePaths: /api/geographicAddressManagement/v1

Policies:

carlosmscabral commented 4 months ago

If I coment out the PostClientFlow portion, the rendering simply works.

micovery commented 1 month ago

Fixed by https://github.com/apigee/apigee-go-gen/pull/15