Giter Club home page Giter Club logo

Comments (5)

jmisur avatar jmisur commented on August 27, 2024 1

I think we're missing documentation for this annotation. Also it would be better to just support recursive structures. We'll take a look in the near future.

from spring-auto-restdocs.

ianstansbury avatar ianstansbury commented on August 27, 2024

Did a bit more digging and this is most likely a recursion bug. Looking through the stack it looks like one object is nested in another which is nested within the original object.

`public class Tender{

List otherTenders;

}
public class OtherTender{

List Tenders;

}`

From a business standpoint this makes sense though it is not the best idea code wise. Im going to try and use @RestDocsNotExpanded to see if this fixes this. I think maybe it still needs to be addressed as this is quite confusing to debug. If nothing else a more specific error to pinpoint the problem.

Ideally it would be handled similar to what spring data jpa does and just breaks the links when a recursion is detected.

from spring-auto-restdocs.

jmisur avatar jmisur commented on August 27, 2024

Thanks for digging into it more, it's hard for us to debug without access to the code. @ResdocsNotExpanded should indeed fix errors with recursive data structures.

from spring-auto-restdocs.

amolsoman avatar amolsoman commented on August 27, 2024

I had similar problem and @RestdocsNotExpanded solved it.

from spring-auto-restdocs.

amolsoman avatar amolsoman commented on August 27, 2024

from spring-auto-restdocs.

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.