Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1129

@JsonProperty on enum value is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • java-chassis-1.2.0
    • java-chassis-1.2.0
    • Java-Chassis
    • None

    Description

      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.

        public enum TestEnum {
          @JsonProperty(value = "A-B")
          AB
        }
      

      Attachments

        Issue Links

          Activity

            People

              yaohaishi Haishi Yao
              yaohaishi Haishi Yao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m