Comments (5)
Could you elaborate on what exactly doesn't work?
from openapi-gui.
I might be mistaken but It would make much sense for me if after uploading yaml spec file which has keywords it will be displayed as the merged object. not the list of 'allof'
from openapi-gui.
I don't think so. JSON schema allOf
means the instance must be valid against all of these separate schemas. It does not mean merge them.
from openapi-gui.
according to this page : 'allOf' takes an array of object definitions that are used for independent validation but together compose a single object.
The thing you have described is more about 'anyof'
from openapi-gui.
From the page you linked to:
- oneOf – validates the value against exactly one of the subschemas
- allOf – validates the value against all the subschemas
- anyOf – validates the value against any (one or more) of the subschemas
By "compose a single object" it means that the object instance being validated is a single object, not that the schemas listed in the allOf
are merged into one object.
See also https://tools.ietf.org/html/draft-wright-json-schema-validation-00#section-5.22
OpenAPI-GUI is designed to edit your schemas as you have written them. If you want to merge them, you should do so in your OAS document. There would be no way of untangling a merged allOf
schema to write it back to the exported OAS document.
from openapi-gui.
Related Issues (20)
- Can't create a HTTP Authentication security scheme HOT 5
- Media type at request body does not reflect value entered HOT 2
- Unable to config callback operation
- Confusion while navigate operations
- Importing an exported file doesn't work
- content type of requestBody not set
- Migrate js/*.js to dependencies HOT 3
- The button "Remove all" not work HOT 3
- main path application content cannot take effect after change
- ReactJS integration support ? HOT 3
- Hexadecimal interpreted as number HOT 10
- The syntax-highlighting for the "Export YAML" output doesn't escape ' properly HOT 2
- always display petstore HOT 5
- Support saving to GitHub gist and sharing of links
- Missing re-use shared scheme for response HOT 2
- oauth flows missing
- Add a rendered preview of the api HOT 1
- why response object only supports inline schema? or any plan for share schema? HOT 1
- Schema Editor: Add option to only define the actual parameters and do the JSON Schema under the hood. HOT 1
- parse error
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 openapi-gui.