Skip to content

writeOnly fields are not marked as such in the generated DTO #136

@davidjohnstonverint

Description

@davidjohnstonverint

If I mark a field in the open API spec as writeOnly: true, e.g. as you might do for a password/token:

accessToken:
type: string
writeOnly: true

The generated DTO class does not mark the field as write only. Ideally it would mark the field on the DTO with JsonProperty.Access.WRITE_ONLY in the @JsonProperty annotation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions