Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

option to disable jackson Access? #89

Open
hauner opened this issue Mar 25, 2022 · 0 comments
Open

option to disable jackson Access? #89

hauner opened this issue Mar 25, 2022 · 0 comments

Comments

@hauner
Copy link
Member

hauner commented Mar 25, 2022

@JsonProperty(...., access = JsonProperty.Access.READ_ONLY)

I have a case where a model class is deserialized, processed, and then (unmodified) serialized again before it is delivered to the client. This breaks when a property is defined as readOnly in the openapi description.

  • disable Access in this case ?
  • manually duplicate the object ?
  • any clever jackson trick?
  • remove readOnly
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant