Comments (4)
Closed by #174
Thanks, @hss-mateus
from rspec-openapi.
yes, it preserves the array elements and also adds the generated object
from rspec-openapi.
Same issue here. Reading through the source code it seems that this case isn't handled.
A possible implementation is to find the most similar schema, merge it, and if no schema is sufficiently similar, a new option is added to oneOf
.
from rspec-openapi.
data:
oneOf:
- type: object
properties:
email:
type: string
format: email
- type: object
properties:
selfie_url:
type: string
format: uri
type: object
properties:
email:
nullable: true
selfie_url:
nullable: true
It looks weird. oneOf
mixes array elements - ...
and object properties type: ...
.
Was that YAML/JSON generated?
from rspec-openapi.
Related Issues (20)
- Support for OAS 3.1? HOT 2
- Support Minitest's parallel execution HOT 1
- Generated Request Body for Path is using 422 Response HOT 3
- Is there any way to define additionalProperties? or Free-Form Object HOT 5
- Suggestion for the readOnly property HOT 1
- Getting invalid byte sequence in UTF-8 when the response is a pdf HOT 3
- Difference in Empty Values Handling in Examples HOT 3
- Dealing with responses with different possible bodies for the same status code HOT 1
- requestBody should not merge examples for error HOT 2
- Setting additionalProperties = false HOT 1
- Include property descriptions in response schema? HOT 1
- Regenerating (remove file and run rspec) the schema without changing the code, generates different file. HOT 1
- Authorization HTTP header is inserted as parameter even though there is securityScheme defined HOT 2
- Using `RSpec::OpenAPI.path = ->` but for different audiences HOT 1
- Evaluate proc for RSpec::OpenAPI.title HOT 2
- Referenced components in "items" not generated?
- API schema that is not subject to rspec execution is deleted. HOT 1
- Minitest support HOT 2
- Can we support 'required' ? HOT 2
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 rspec-openapi.