-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
I'm using the jsonschema2dataclass gradle plugin (issue clone from jsonschema2dataclass/js2d-gradle#604) but I think this issue is coming from the core library here.
for data like:
...
"hash": {
"description": "Specifies the hash algorithm and value for the content",
"type": "object",
"properties": {
"algorithm": {
"description": "The hashing function used to compute the hash value",
"type": "string",
"enum": [ "sha256" ]
},
"value": {
"description": "The hash value for the content",
"type": "string"
}
},
"required": [ "algorithm", "value" ]
}
...
a constructor is created like:
/**
*
* @param value
* @param algorithm
*/
public Hash(Hash.Algorithm algorithm, String value) {
super();
this.algorithm = algorithm;
this.value = value;
}
Would it make sense to inject the description into the generated javadoc here so we don't get javadoc generation warnings (happens with Temurin Java11) like:
/home/.../Hash.java:44: warning: no description for @param
* @param value
^
I was hoping the javadoc could include descriptions from the json spec itself and be generated something like:
/**
*
* @param value the hash value for the content
* @param algorithm the hashing function used to compute the hash value
*/
public Hash(Hash.Algorithm algorithm, String value) {
super();
this.algorithm = algorithm;
this.value = value;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels