Skip to content

The error type is lost in oneOf #657

@micronull

Description

@micronull

If a field must satisfy multiple rules described using oneOf, we cannot get openapi3.SchemaError types.
The only thing we will get is a string.

components:
  schemas:
    Something:
      type: object
      properties:
        field:
          title: Some field
          oneOf:
            - title: First rule
              type: string
              minLength: 10
              maxLength: 10
            - title: Second rule
              type: string
              minLength: 15
              maxLength: 15

Get the error type errorString.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions