Giter Club home page Giter Club logo

Comments (11)

daveshanley avatar daveshanley commented on July 16, 2024 1

Hi, I'm offline for a couple of days during the holidays (I've not had any downtime this year), so, I haven't been able to look into this yet. I'm unsure why the ordering is different, but I can understand it being an issue.

I'll be back online in a couple of days and I can investigate this a little more. A fix should be nonbreaking.

from libopenapi.

TristanSpeakEasy avatar TristanSpeakEasy commented on July 16, 2024 1

I have provided an alternate PR that retains the async nature of the resolving while solving the original order issue here #66

from libopenapi.

bitomaxsp avatar bitomaxsp commented on July 16, 2024

#59 fails

from libopenapi.

bitomaxsp avatar bitomaxsp commented on July 16, 2024

@daveshanley Hi Dave. I am ready to work on the fix for this issue (it's kind of blocking for us). I'd like to have your opinion first on that.

from libopenapi.

bitomaxsp avatar bitomaxsp commented on July 16, 2024

I have suggested a fix. Please review when you have time.
It fixes all arrays processing, not only AllOf

from libopenapi.

daveshanley avatar daveshanley commented on July 16, 2024

I've added some comments. Generally, it looks OK, but I want to ensure we're not slowing things down for large specs, I don't think it will, but I want to make sure. So some A/B benchmark testing to verify it's not slowing things down (even though I'm pretty sure it won't)

from libopenapi.

bitomaxsp avatar bitomaxsp commented on July 16, 2024

Will try to comeup with some benchmarks.
But i think you forgot to submit your comments. I do not see them

from libopenapi.

daveshanley avatar daveshanley commented on July 16, 2024

Apologies forgot to press submit, I got distracted with some code.

from libopenapi.

TristanSpeakEasy avatar TristanSpeakEasy commented on July 16, 2024

Have just ran into this issue as well, as order of allOf determines how the resulting object is resolved and if the order is incorrect then things may not be overridden correctly (if two allOf schemas specify the same fields for example the first one in the list gets overriden by the second one in the list for example)

from libopenapi.

daveshanley avatar daveshanley commented on July 16, 2024

Once we're confident about the change @bitomaxsp has put in place in #59, this should be resolved.

from libopenapi.

daveshanley avatar daveshanley commented on July 16, 2024

Now that #66 has been merged in (thank you for your contribution @TristanSpeakEasy). We should be able to close the book on this issue.

from libopenapi.

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.