Closed nydrani closed 3 years ago
~The output JSON is working as intended. See https://github.com/anz-bank/sysl/issues/1040#issuecomment-684417202 for details.~
~The arr.ai transform will have to accommodate it by inferring appname from its containing app.~
This is related to https://github.com/anz-bank/sysl-go/issues/215 and https://github.com/anz-bank/sysl/issues/1040, but slightly different since the interpretation of return
bodies is up the code generator.
https://github.com/anz-bank/sysl-go/blob/master/codegen/arrai/grpc.arrai#L8
This arrai transform reads a jsonified sysl file, specifically this kind of structure:
This works for a sysl file where the data types are located separately from the endpoints. Kind of like:
In the situation where they are located together, e.g:
the arrai transform is incorrect due to the linked line (line 8).
The solution is to make the transform read the last word past the final dot (final '.') and use that in the string templating/transform.