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/24 07:36:00 UTC

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

YaoHaishi created SCB-1129:
------------------------------

             Summary: @JsonProperty on enum value is ignored
                 Key: SCB-1129
                 URL: https://issues.apache.org/jira/browse/SCB-1129
             Project: Apache ServiceComb
          Issue Type: Bug
    Affects Versions: java-chassis-1.2.0
            Reporter: YaoHaishi
            Assignee: YaoHaishi


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)