Giter Club home page Giter Club logo

Comments (8)

xenoterracide avatar xenoterracide commented on September 16, 2024 1

not the OP, but

In which cases the entire classpath should be scanned ?

none, not ever, bad idea, ask the developer to provide a package name from which to start scanning so you don't end up scanning every library ever, Possibly have an annotation (like spring boot does) to say where classpath scanning should start. Also possibly make it possible not to scan, instead simply provide a list of classes.

from mbknor-jackson-jsonschema.

mbknor avatar mbknor commented on September 16, 2024 1

Any feedback on #75 would be apreciated

from mbknor-jackson-jsonschema.

mbknor avatar mbknor commented on September 16, 2024

Hi,

This problem is caused by this line:

https://github.com/mbknor/mbknor-jackson-jsonSchema/blob/master/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala#L22

It scans the entire classpath. An improvement would be to make this configruable.
A PR fixing this would be great 😀

from mbknor-jackson-jsonschema.

serdarozturk88 avatar serdarozturk88 commented on September 16, 2024

Thanks for your answer.

Could you please give some details about this making configurable.

In which cases the entire classpath should be scanned ?
Should i filter the scan root or disable scan according to config?
İf we disable this which features won't work?

from mbknor-jackson-jsonschema.

zrrobbins avatar zrrobbins commented on September 16, 2024

Yeah, this issue makes the library almost unusable for large projects, not only slowing things down to a crawl, but causing OOM failures.

from mbknor-jackson-jsonschema.

mbknor avatar mbknor commented on September 16, 2024

I'm Not currently using this library on a daily basis anymore, but i'll try to get time to fix this

from mbknor-jackson-jsonschema.

mbknor avatar mbknor commented on September 16, 2024

Fixed in 5391586

from mbknor-jackson-jsonschema.

mbknor avatar mbknor commented on September 16, 2024

Fixed in version to 1.0.30

from mbknor-jackson-jsonschema.

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.