Closed AlistairB closed 4 years ago
Do you think that there is a case to suggest that the node_id should be optional ?
AFAICT, it is always there for certain entities and never there for others. Specifically these entities should always have it https://developer.github.com/v4/interface/node/
PageBuild
for example is only exposed via v3 api it seems and as such does not have it.
All the example payloads in https://developer.github.com/v3/activity/events/types/ reliably appear to include it for certain entity types, but not for others.
As such I'm inclined to only add it to the entities that should have it and make it mandatory.
Personally, I like to err on the side of the more restrictive type that should be correct, as it will blow up loudly if the assumption is wrong. However, with the more permissive optional type, it may be mandatory but we may never notice. Happy to do whatever though :)
I made it optional for HookIssueLabels
which currently has an optional id
Sounds good
@donkeybonks this should be good to go. I made some of the label related types to have the optional node_id just in case. The others I am pretty confident will always have it. Let me know if any changes are needed. Thanks!
Thanks, I'll review within the next 24hr.
Sorry, I'll need another 24hr.
No worries. No rush!
Looks good to me! Thanks.
Issue reference: Closes https://github.com/onrock-eng/github-webhooks/issues/27
Submission Checklist: