You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
$comment field for property can be turned into JavaDoc #1197
We use the $comment field a lot in our schemas, and it would be nice if the content of that was added as JavaDoc to the fields and setters, getters, withers, etc. Right now the only JavaDoc we get is (Required).
I also realized that the 'description' field already works exactly the way I thought the '$comment' field worked. What's the recommendation here? Should I still raise a PR for supporting the '$comment' field (now that I finally started working on it it's pretty simple), or should the recommendation just be "use the description field"?
Activity
eirnym commentedon Feb 24, 2021
Hi there,
It's a nice enchantment. Do you mind to make a PR for this?
markusjevringsesame commentedon Feb 25, 2021
I might be able to find some time.
eirnym commentedon Feb 25, 2021
Great! I'll be happy to add this feature into the core tool
joelittlejohn commentedon Feb 25, 2021
Yeah, sounds good to me.
Check out TitleRule. Should be pretty easy to create a CommentRule 👍
markusjevringsesame commentedon Mar 11, 2021
@joelittlejohn @eirnym I'm getting this from the spec for draft-7 about the '$comment' field: "Implementations MUST NOT present this string to end users."
https://tools.ietf.org/html/draft-handrews-json-schema-01#section-9
I also realized that the 'description' field already works exactly the way I thought the '$comment' field worked. What's the recommendation here? Should I still raise a PR for supporting the '$comment' field (now that I finally started working on it it's pretty simple), or should the recommendation just be "use the description field"?
eirnym commentedon Mar 12, 2021
@markusjevringsesame later it's said explicitly on this field, that it MAY be translated to a comment, but it's optional.
markusjevringsesame commentedon Mar 12, 2021
@eirnym PR is up now: #1211
Turn $comment fields into javadoc