Incorrect Haskell code generation for nested resources when using named sid
ryskajakub opened this issue · comments
While having this schema:
schema = S.withListing () $ S.named [
("single", S.singleRead id) }
The Haskell client code generator generates this code for actions that depend on single resource identification:
request
= makeReq "GET" "v1.0.0"
[["myResource"], ["single"], [showUrl companyId]]
[]
rHeaders
""
So far so good. But then I have another - nested resource, that is composed with this myResource
, and the generator generates code like this:
request
= makeReq "GET" "v1.0.0"
[["myResource"], MyResource.readId myResource, ["nestedResource"]]
pList
rHeaders
""
I think that the ["single"]
shouldn't be omitted there.
I run the 0.17.0.5
of rest-gen
It's included in the readId
now I see it, ignore me :-)