Closed ryskajakub closed 9 years ago
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:
myResource
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
["single"]
0.17.0.5
rest-gen
It's included in the readId now I see it, ignore me :-)
readId
While having this schema:
The Haskell client code generator generates this code for actions that depend on single resource identification:
So far so good. But then I have another - nested resource, that is composed with this
myResource
, and the generator generates code like this:I think that the
["single"]
shouldn't be omitted there. I run the0.17.0.5
ofrest-gen