forked from loafle/openapi-generator-original
* [Java] [JavaJaxRS] Respect readOnly/writeOnly attribute markers Generate jackson JsonProperty like following: - `readOnly` is present in Spec: `@JsonProperty(value = "[name]", access = JsonProperty.Access.READ_ONLY)` - `writeOnly` is present in Spec: `@JsonProperty(value = "[name]", access = JsonProperty.Access.WRITE_ONLY)` Edge case: both are present -> Spec is invalid and generator cancels anyway with: > org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). > | Error count: 1, Warning count: 1 > Errors: > -attribute components.schemas.Example. writeOnly and readOnly are both present * update samples Co-authored-by: Michael Kroll <9883575+mickroll@users.noreply.github.com>