Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixture of allOf and anyOf/oneOf doesn't work #743

Closed
floggle opened this issue Dec 15, 2018 · 0 comments · Fixed by #2576
Closed

Mixture of allOf and anyOf/oneOf doesn't work #743

floggle opened this issue Dec 15, 2018 · 0 comments · Fixed by #2576
Labels
openapi Questions about specification, validity, and edge cases

Comments

@floggle
Copy link

floggle commented Dec 15, 2018

Similar to:
#641
but un-nested

Using your example:

Main:
  title: Sale
  description: A request to authorize and capture funds.
  allOf:
  - $ref: '#/components/schemas/Anything1'
  - type: object
	properties:
	  d:
		type: number
		
  oneOf:
  - $ref: '#/components/schemas/Anything2'
  - $ref: '#/components/schemas/Anything3'
  
Anything1:
  type: object
  properties:
	a:
	  type: string
	  
Anything2:
  type: object
  properties:
	b:
	  type: string
	  
Anything3:
  type: object
  properties:
	c:
	  type: string

For my version of the above, ReDoc examples only shows a list of the various oneOf items. There's no sign of the allOf items.

Also, there's no indication that I can see anywhere that there's a anyOf/oneOf restriction in place.

@lornajane lornajane added the openapi Questions about specification, validity, and edge cases label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi Questions about specification, validity, and edge cases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants