Alice52 / project

This repository is muti language and tech integration project.
MIT License
0 stars 0 forks source link

[swagger] config bug #30

Closed Alice52 closed 4 years ago

Alice52 commented 4 years ago
  1. swagger execute should be in textarea rather than in input, I think it is strange

Selection_107

  1. model required property

  2. ignore specify property in ui

    • @ApiModelProperty(hidden=true)
    • @JsonIgnore
    • @ApiIgnore
    • @ApiParam(hidden=true)
  3. why post method, it's paramter is in query?

Selection_108


  1. reference
Alice52 commented 4 years ago

swagger execute should be in textarea rather than in input, I think it is strange

This is because if we donot specify args resource, swagger will think it come from query, so shuold use @RequestBody

Alice52 commented 4 years ago

model required property

worked.

Alice52 commented 4 years ago

ignore specify property in ui

just use @ApiModelProperty(hidden=true), it worked

@JsonIgnore: jackson

@JsonProperty(value="val")

  • can rename property name

reference

  1. https://www.jianshu.com/p/54ba009064b0
Alice52 commented 4 years ago

Finally, please reject fastjson, please.

Alice52 commented 4 years ago

@JsonIgnore: jackson

if find it also cannot receive args, please add it to getter, then add @JsonProperty to setter