-
Notifications
You must be signed in to change notification settings - Fork 24
swagger: Document meaning of value -1 for parentId of TreeDataModel #191
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
swagger: Document meaning of value -1 for parentId of TreeDataModel #191
Conversation
| */ | ||
| @Schema(description = "Unique id to identify this parent's entry, " + | ||
| "optional if this entry does not have a parent.") | ||
| @Schema(description = "Optional unique id to identify this parent's entry. " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was meant to say "this entry's parent" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| @Schema(description = "Unique id to identify this parent's entry, " + | ||
| "optional if this entry does not have a parent.") | ||
| @Schema(description = "Optional unique id to identify this parent's entry. " + | ||
| "Use -1 if this entry has no parent. If omitted, this entry has no parent.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like we are encouraging the use of -1 when omitting would be just as good. Maybe I would suggest:
"If the parentId is -1 or omitted, this entry has no parent".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Fixes eclipse-cdt-cloud/trace-server-protocol#65 Signed-off-by: Bernd Hufmann <[email protected]>
This PR adds an issue and PR template in this repo, heavily inspired from those of the theia-trace-extension. Corresponding swagger model update: eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#191 Signed-off-by: Bernd Hufmann <[email protected]>
Fixes eclipse-cdt-cloud#65 Corresponding swagger model update: eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#191 Signed-off-by: Bernd Hufmann <[email protected]>
8af6d85
into
eclipse-tracecompass-incubator:master
Fixes #65 Corresponding swagger model update: eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#191 Signed-off-by: Bernd Hufmann <[email protected]>
What it does
Document meaning of value -1 for parentId of TreeDataModel in swagger model.
Fixes eclipse-cdt-cloud/trace-server-protocol#65
How to test
Generate openapi.yaml and verify change is there.
Follow-ups
Update TSP specification
Review checklist