Skip to content

Jackson annotations are ignored when generated from scanner #157

@jogerj

Description

@jogerj
public class Foo {
    
    @JsonProperty("baz")
    public String bar;
    
    public Foo(String bar) {
        this.bar = bar;
    }
}

Suppose I have a DTO Foo, the asyncapi.yaml generated by the scanner defines Foo as follows:

Foo:
  type: "object"
  properties:
    bar:
      type: "string"

Which is incorrect since bar should be (de)serialized into baz

Version: 0.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions