You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "YaoHaishi (JIRA)" <ji...@apache.org> on 2019/01/25 08:29:00 UTC

[jira] [Updated] (SCB-1129) @JsonProperty on enum value is ignored

     [ https://issues.apache.org/jira/browse/SCB-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

YaoHaishi updated SCB-1129:
---------------------------
    Component/s: Java-Chassis

> @JsonProperty on enum value is ignored
> --------------------------------------
>
>                 Key: SCB-1129
>                 URL: https://issues.apache.org/jira/browse/SCB-1129
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>    Affects Versions: java-chassis-1.2.0
>            Reporter: YaoHaishi
>            Assignee: YaoHaishi
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently the schema generating mechanism will ignore the JsonProperty annotation on enum value.
> For the enum param like below, the value in generated schema is "AB", but "A-B" is expected.
> {code:java}
>   public enum TestEnum {
>     @JsonProperty(value = "A-B")
>     AB
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)