mulesoft-labs / raml-client-generator

Template-driven generator of clients for APIs described by a RAML spec
Other
121 stars 27 forks source link

Is anyone having this issue? #21

Open briviere opened 9 years ago

briviere commented 9 years ago

Used a more complicated RAML contract and it is crashing with the following:

s.1.raml -o api-client -l javascript part:/{keyType}{key} spec:[object Object] key:undefined TypeError: Cannot read property 'relativeUri' of undefined at recurse (/home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:113:58) at attachResource (/home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:158:3) at /home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:149:9 at Array.forEach (native) at recurse (/home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:148:26) at recurse (/home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:140:14) at recurse (/home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:140:14) at attachResource (/home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:158:3) at /home/briviere/.npm-packages/lib/node_modules/raml-client-generator/node_modules/raml-generator/lib/context/resources.js:187:12 at Array.forEach (native)

blakeembrey commented 9 years ago

@briviere I'll take a look into it, can you give me the version you're using and maybe a sample RAML file that replicates the issue?

briviere commented 9 years ago

Version 0.1.1

Sure I can work on providing the raml and related JSON Schema.

Brian

On Sat, Oct 3, 2015 at 2:51 PM, Blake Embrey notifications@github.com wrote:

@briviere https://github.com/briviere I'll take a look into it, can you give me the version you're using and maybe a sample RAML file that replicates the issue?

— Reply to this email directly or view it on GitHub https://github.com/mulesoft/raml-client-generator/issues/21#issuecomment-145278030 .