Skip to content

✨ Proposal: at least one property is required #1602

Closed
@DarkLite1

Description

@DarkLite1

Describe the inspiration for your proposal

It would be great if it was possible to define that either field y or x is required.

Describe the proposal

If you want to send an email you can either have a to field or bcc field or both, but none is not acceptable.

"To": {
    "type": "array",
    "title": "To",
    "description": "An array of recipient email addresses.",
    "items": {
    "type": "string",
    "format": "email"
    }
},
"Bcc": {
    "type": "array",
    "title": "Bcc",
    "description": "An array of BCC email addresses.",
    "items": {
    "type": "string",
    "format": "email"
    }
},

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalInitial discussion of a new idea. A project will be created once a proposal document is created.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions