vikeria commented on issue #4881: URL: https://github.com/apache/servicecomb-java-chassis/issues/4881#issuecomment-3146122566
> It will work successfully if you add the [@Schema](https://github.com/Schema) annotation. like that: > > ``` > public class RespBody { > > @JsonUnwrapped > @Schema(implementation = Address.class) > private Address address; > > public static class Address { > private String city; > private String street; > > public String getCity() { > return city; > } > > public void setCity(String city) { > this.city = city; > } > > public String getStreet() { > return street; > } > > public void setStreet(String street) { > this.street = street; > } > } > > public Address getAddress() { > return address; > } > > public void setAddress(Address address) { > this.address = address; > } > } > ``` The api swagger document will show "address" field,it seems not appropriate. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
