i am using open api generator for request and response objects generation. I want to hide/ignore the json field from yaml. So i have tried by using this config in yaml-> x-field-extra-annotation: "@com.fasterxml.jackson.annotation.JsonIgnore" or import io.swagger.v3.oas.annotations.Hidden
. Below is the generated code
@JsonProperty("id")
private String id;
@JsonProperty("name")
@JsonIgnore
private String name;
and for Hidden
@JsonProperty("id")
private String id;
@JsonProperty("name")
@Hidden
private String name;
But i can see name in response. Please suggest how to ignore or hide the name field from response.