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/28 02:32:00 UTC

[jira] [Resolved] (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 resolved SCB-1129.
----------------------------
       Resolution: Fixed
    Fix Version/s: java-chassis-1.2.0

> @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
>             Fix For: java-chassis-1.2.0
>
>          Time Spent: 20m
>  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)