You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but if the a/b/c/ is dropped, e.g. dsl.Files("/mysuperduperapi.json", "openapi3.json")
Goa does not generate the appendPrefix which does not result in selecting the openapi3.json but trying to access mysuperduperapi.json.
So I think appendPrefix should always be generate even if its with "." to select the openapi3.json.
P.S. Maybe this is also intended behavior, but its kind of odd, because only
dsl.Files("/openapi3.json", "openapi3.json")works
dsl.Files("/openapi.json", "openapi3.json")does not work
Wouldn't making this change cause a different behavior when serving files from the filesystem? the path /foo isn't equivalent to foo, the Files comment documents the difference (absolute vs. relative paths).
I don't quite follow:
Goa does not generate the appendPrefix which does not result in selecting the openapi3.json but trying to access mysuperduperapi.json.
Goa should serve openapi3.json using a relative path (that is the file should live in the current directory of the service process). If Goa really attempts to serve mysuperduperapi.json then that's a bug.
Would you be able to provide a complete minimal design that reproduces the issue? that would probably help, thank you!
Goa is awesome, but we have seen an issue which occures when doing:
The code does produces ([code])(https://github.com/goadesign/examples/blob/master/basic/gen/http/calc/server/server.go#L56)
but if the
a/b/c/
is dropped, e.g.dsl.Files("/mysuperduperapi.json", "openapi3.json")
Goa does not generate the
appendPrefix
which does not result in selecting theopenapi3.json
but trying to accessmysuperduperapi.json
.So I think
appendPrefix
should always be generate even if its with"."
to select theopenapi3.json
.P.S. Maybe this is also intended behavior, but its kind of odd, because only
dsl.Files("/openapi3.json", "openapi3.json")
worksdsl.Files("/openapi.json", "openapi3.json")
does not workThis is triggered by this line basically
The text was updated successfully, but these errors were encountered: