Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@JsonPropertyDescription annotation does not properly extract description from schema #655

Closed
bhaesler opened this issue Dec 6, 2016 · 0 comments
Milestone

Comments

@bhaesler
Copy link

bhaesler commented Dec 6, 2016

Example:

This schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "myField": {
      "type": "string",
      "description": "This is myField, not yours."
    }
  }
}

produces

/**
* This is myField, not yours.
* 
*/
@JsonProperty("myField")
@JsonPropertyDescription("")
private String myField;

but should have @JsonPropertyDescription("This is myField, not yours.")

bhaesler pushed a commit to bhaesler/jsonschema2pojo that referenced this issue Dec 6, 2016
joelittlejohn added a commit that referenced this issue Dec 6, 2016
 #655 @JsonPropertyDescription fix
thachhoang added a commit to thachhoang/jsonschema2pojo that referenced this issue Dec 7, 2016
@joelittlejohn joelittlejohn added this to the 0.4.29 milestone Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants