Comments (11)
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.
I have provided an alternate PR that retains the async nature of the resolving while solving the original order issue here #66
from libopenapi.
#59 fails
from libopenapi.
@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.
I have suggested a fix. Please review when you have time.
It fixes all arrays processing, not only AllOf
from libopenapi.
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.
Will try to comeup with some benchmarks.
But i think you forgot to submit your comments. I do not see them
from libopenapi.
Apologies forgot to press submit, I got distracted with some code.
from libopenapi.
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.
Once we're confident about the change @bitomaxsp has put in place in #59, this should be resolved.
from libopenapi.
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)
- Validation and Bundling problems HOT 9
- Remote reference cannot be resolved HOT 2
- issue when rendering yaml with integer numbers HOT 5
- Panic while trying to Unmarshal a Schema HOT 3
- type of enum is nil HOT 1
- Duplicated path parameter in a path is deemed invalid HOT 3
- `Index.GetAllSchemas()` regression in values returned HOT 6
- nullable reference: hard to properly identify it HOT 4
- Example in the doc is not compiling HOT 1
- Panic During Schema Rendering HOT 3
- Circular reference does not return an error HOT 3
- Bug: securitySchemes oauth2 empty scopes is stripped HOT 2
- [bug] remote specs with local references
- [Question] How to keep `components.schemas` when bundling openapi spec from multiple files? HOT 3
- NewDocument doesn't follow references HOT 1
- In-document references in remote documents not resolving correctly HOT 3
- Race Condition in BuildV3Model
- Panic when rendering a nullable example
- Example not compiling due to error: cannot range over docModel.Model.Paths.PathItems HOT 4
- Bundle Recursive Refs without Resolving
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libopenapi.