Skip to content

Support read- and write only fields #604

@rafalkrupinski

Description

@rafalkrupinski

Is your feature request related to a problem? Please describe.
non-nullable read- and write-only fields are required only in either request or response objects. In the generated client they are all required tho.

Describe the solution you'd like
A simple solution would be to make all required read and write-only fields behave as nullable.
Another one would be introduce a base model class with all other fields and writeable & readable subclasses with write and read-only fields respectively.

Additional context
I'd be happy to prepare a PR for the first approach

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions