Swagger springfox hide model property on POST

前端 未结 2 2063
悲哀的现实
悲哀的现实 2021-02-05 22:16

Would like to know how to hide a model property in Swagger on POST. I have tried both Swagger-springmvc (0.9.3) and Springfox (supports swagger spec 2.0) to no avail.

Pr

2条回答
  •  一个人的身影
    2021-02-05 22:45

    Unfortunately having different request and response models is not supported currently in springfox. The current thought is that we might support this feature using @JsonView in the future.

提交回复
热议问题