Giter Site home page Giter Site logo

Comments (11)

fehguy avatar fehguy commented on May 2, 2024

RE: PagingList, per issue #36, these are not real errors. The message is misleading--we'll remove the message in the next update.

For model Junction--are there public methods/fields in it?

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

Yes. For ebean model, there are public accessors in it.

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

So you mean I don't need to put the weird @XmlRootElement in my models, right? the fix will come in next release, right?

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

Can you post the com.avaje.ebean.Junction model code? If it has public getter/setters, you should see the model correctly.

The message "X not annotated with a @XmlRootElement annotation, using X" is a red herring and will not be printed in the future.

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

com.avaje.ebean.Junction is not my model. this is ebean model and I think it is an interface.
http://grepcode.com/file/repo1.maven.org/maven2/org.avaje/ebean/2.7.0/com/avaje/ebean/Junction.java

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

this is my model.
https://gist.github.com/3445494

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

OK, is the json coming back from the API describing the models correctly? Can you post that?

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

I don't have json coming back from model, only from controller where I defined @Api @ApiOperation..

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

OK, if you can post that, it would be helpful. Perhaps you can join me on #swagger via irc.freenode.net? I'm around for a few minutes

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

sure. let me join that. I do have one more issue.

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

Thanks @fehguy

If anyone searched and found this issue, you might want to check https://github.com/wordnik/swagger-core/blob/master/samples/java-play2/app/controllers/PetApiController.java#L25

The responseClass will be used by swagger to parse the response result.

And those error messages
[error] c.w.s.p.HelpApi
[error] c.w.s.j.ApiModelParser
will be fixed in 1.1.1 release.

from swagger-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.