Giter Site home page Giter Site logo

Comments (7)

fehguy avatar fehguy commented on May 2, 2024

I didn't realize this was still in the core! Looking into alternatives to it and will get back to you soon.

from swagger-core.

ayush avatar ayush commented on May 2, 2024

Yikes! Thanks for reporting this.

from swagger-core.

geeksville avatar geeksville commented on May 2, 2024

btw - here's a possible fix if you want it. Worked well for my case: Xeralux@8dac1cf

from swagger-core.

ayush avatar ayush commented on May 2, 2024

@geeksville that'll work but we probably want to externalize this to make it configurable in swagger.

from swagger-core.

webron avatar webron commented on May 2, 2024

Opened issue 51 which I believe is related to this issue and can possibly resolve this issue along the way.

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

This is addressed in the 1.1-spec branch:

https://github.com/wordnik/swagger-core/tree/1.1.0-spec

You can configure the package in you web.xml through an init-param:

<init-param>
   <param-name>api.model.packages</param-name>
   <param-value>com.your.project</param-value>
</init-param>

This isn't typically needed--there is a default exclusion criteria which passes all the unit tests in SpecReaderTest.scala. But if you want to only include a certain package, please use the web.xml param per above

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

pushed to master and released in 1.1.0. You can take the default filtering which is sensible--or put your own in web.xml or via programmatic configuration in the TypeUtil:

https://github.com/wordnik/swagger-core/blob/master/modules/swagger-core/src/main/scala/com/wordnik/swagger/core/util/TypeUtil.scala#L224

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.