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

oneOf type forced to object #65

Open
smarlowucf opened this issue Jul 26, 2018 · 4 comments
Open

oneOf type forced to object #65

smarlowucf opened this issue Jul 26, 2018 · 4 comments
Labels
area/schema Indicates an issue on schema area kind/bug/confirmed

Comments

@smarlowucf
Copy link
Contributor

smarlowucf commented Jul 26, 2018

If you have a list oneOf types validator defaults them to object and fails:

schema

utctime:
  oneOf:
    - type: string
      enum: [always, now]
    - type: string
      format: date-time

request

{'utctime': 'now'}

Yields: openapi_core.schema.media_types.exceptions.InvalidMediaTypeValue: Value of now not an object.

Now should be of type string not object.

@GuillemGSubies
Copy link

Same problem here.

@p1c2u p1c2u mentioned this issue Aug 2, 2018
@dremdem
Copy link

dremdem commented Aug 3, 2018

I have the same issue.

@r-azh
Copy link

r-azh commented Aug 5, 2018

I have the same issue too.

@p1c2u p1c2u added the area/schema Indicates an issue on schema area label Aug 17, 2018
@piotr-dobrogost
Copy link

Could we please have any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Indicates an issue on schema area kind/bug/confirmed
Projects
None yet
Development

No branches or pull requests

6 participants