Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    justjacksonn
    @justjacksonn
    you install a docker daemon... and it acts as if you have installed an entire VM... but it shares base level resources and runs images in their own sandboxes
    Well, if you could simply do something like docker run ramlsdkgenerator -i my/path/to/raml -o target
    and the result would be one or more SDKs generated (different languages)
    would that be useful versus downloading a nodejs app and running it?
    docker is a company and they have a public docker repository where you can publish shareable docker images
    that anyone can run
    Sam Duke
    @samskiter
    id rather it was a gradle plugin tbh, no need for docker or anything
    i dont want to run this standalone
    justjacksonn
    @justjacksonn
    ok..why is that?
    Sam Duke
    @samskiter
    i want my raml api checked into my repo so the generated code is always up to date with the API and api docs
    so i check out the code and on building, it generates the retrofit client and the Pojos
    justjacksonn
    @justjacksonn
    Oh..this wouldnt change that at all.. the only thing what I am describing replaces is having to run something like raml-retrofit by installing it via node locally..
    Sam Duke
    @samskiter
    well i dont i have it all in a gradle script
    justjacksonn
    @justjacksonn
    with a sort of global build tool.. your raml, schemas, generated SDKs, etc are all yours.
    Sam Duke
    @samskiter
    but if some one could wrap that gradle script up for me into a nicely maintained thing then yea, great. i dont really care how it come down. just abstract the controls to me.
    justjacksonn
    @justjacksonn
    you could certainly add the docker run command in your gradle script as well
    exactly
    Sam Duke
    @samskiter
    yea sure i could. sounds like just as much of a faff.
    justjacksonn
    @justjacksonn
    the use of it is abstracted so you just make a call pss in raml/schems, get out generated docs, sdks, etc
    Sam Duke
    @samskiter
    what really matters is what options are available.
    justjacksonn
    @justjacksonn
    agreed
    Sam Duke
    @samskiter
    right now raml-client-generator comes down as an npm module so will be just as much of a pain to use
    so yea that would be great as a gradle plugin like jsonschema2pojo... i'm sure someone will do it eventually
    btw, regarding 1.0 support, raml2code is based on raml-js-parser, maintained by raml-org, so im not too worried about that
    Sam Duke
    @samskiter
    (as is raml-generator)
    justjacksonn
    @justjacksonn
    yup..very true.
    but
    the dependencies will need to be updated in the project and possibly some extra work to utilize it.
    I would guess Atoms who wrote it would do that
    or you can just fork it yourself and do it
    Sam Duke
    @samskiter
    yea maybe. ive already forked it and made a couple of changes. shouldnt be too hard to update the dependency. not sure how different raml 1.0 is. but i dont imagine it'll be too bad to update
    justjacksonn
    @justjacksonn
    Agreed.
    Sam Duke
    @samskiter
    @justjacksonn btw what is raml-clien-generator for? raml-javascript-generator seems to depend on raml-generator
    justjacksonn
    @justjacksonn
    it was originally the generator if I recall right.. @blakeembrey will have to offer up more detail. As I recall, my talk with blake and @sichvoge resulted in blake breaking out the generator part from raml-client-generator into raml-generator so that I wasnt forced to use the /languages/ path, but could instead specify the location of language templates and such. Raml-client-generator would basically allow you to run it and specify the name of the language, and it would match up to the languages/<name> folder and you would just provide the handlebars.js templates ther.
    But in my case, I needed individual files for resources and some other things, so raml-generator was born to help make that possible. Thus, I add in my own files handler and write Javascript code to process the RAML via the RAML js parser, and then I use the templates for some things, but mostly use JS code.
    Sam Duke
    @samskiter
    :confused:
    justjacksonn
    @justjacksonn
    @blakeembrey @sichvoge Question on response status parsing.. in the parser, I can parse the method responses via the Object.keys(meth.responses).function(k,i) { });
    however, if I specify a given method with only a response code, like 200 or 204, but no body: element after it.. it ends up being undefined/null in the parser.
    When I add the body: below the status, even with no mimetype added below body:, it works.
    So the RAML ends up having to be something like responses: 204: body:
    Sorry.. didnt format the tabs. But basically I want to specify response statuses that have no body in response. If it has to be forced the a response must return a body, then it should be flagged as an error in the web IDE if you provide a response status with no body: element shouldnt it?
    Blake Embrey
    @blakeembrey
    @justjacksonn could you share the raml snippet with formatting for some extra context on the issue?
    Josh Gough
    @JogoShugh
    Is there somewhere to chat about the ramltools for dotnet project?
    Christian Vogel
    @sichvoge
    I think there is no official chat channel yet.
    but let me know your question, maybe on a 1:1 and I try to get you an answer
    Josh Gough
    @JogoShugh
    Hey thanks Christian
    Abhishek Somani
    @somaniab
    Hello guys , can somebody help me in generating retrofit java classes from raml file . the raml version is 1.0
    seems like raml2Code does not support it either
    and raml client generator is giving following error
    Can not generate BaseDTO from schema since : Unrecognized token 'yaml': was expecting ('true', 'false' or 'null')
    at [Source: [yaml-type-flag]; line: 1, column: 6]