Skip to content

“oneOf” for product types Paper, Pulp, etc #60

Description

@larsolofsson

Would the following construct be valid in a json schema to allow only for Paper or Pulp in a customer article?
I think it would also be good to specify the productType that is also communicated in ListCustomerArticles.

 productType:
type: string
enum:
- Paper
- Pulp
oneOf:
type: object
required: paper
properties: paper:
$ref: '#/components/schemas/Paper'
type: object
required: pulp
properties: pulp:
$ref: '#/components/schemas/Pulp'

Please also see attached email from Bengt.

Bengt's email, Re oneOf for Paper, Pulp etc.pdf

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