Skip to content

"javaJsonView" does not work on types #1659

@trajano

Description

@trajano

Tried this on the website

{
  "type":"object",
  "properties": {
    "foo": {
      "type": "string"
    },
    "bar": {
      "type": "integer"
    },
    "baz": {
      "type": "boolean"
    }
  },
    "javaJsonView": "my.DefaultView"
}

The JsonView annotation is missing on the class, but works on members when I do

{
  "type":"object",
  "properties": {
    "foo": {
      "type": "string"
    },
    "bar": {
      "type": "integer",
          "javaJsonView": "my.DefaultViewInt"
    },
    "baz": {
      "type": "boolean"
    }
  },    "javaJsonView": "my.DefaultView"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions