-
Notifications
You must be signed in to change notification settings - Fork 169
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
Make getPeersV1 meta element optional #388
Conversation
We just need to be careful here because ultimately required -> optional == breaking change to a published interface... |
Yes indeed, this PR intends to gauge support if a one-off breaking change to deal with this oddity is ok or not |
As a rule, i'd be against this, it really doesn't accomplish anything useful, and is a breaking change by definition, so that's my reasoning. |
|
The change in this PR makes the data property required and not the meta property optional as all model fields are optional by default unless they are part of It does not seem like the spec uses the |
I would generally agree with this statement but should we consider I think if this was not 3+ years ago we could definitely just remove it altogether, but at this point, consumers might rely on the bug, although unlikely because bad client support / compatiblity between clients. |
Whether we make a breaking change in fixing a bug or make a breaking change in an enhancement seems inconsequential... It's a breaking change, it's going to likely cause problems... On that basis, is it important enough to do, and if we do it, we should make it a new version and deprecate / remove the old one... - Still breaking but breaking nicely? We can easily define a new endpoint the way we want it as a new version, that would be probably cleaner. |
if we wanna clean this up, might be better to add a v2 api and get rid of this one at some point |
closing for now. we can re-visit later. |
No one likes the meta element, but there's no appetite either for the effort to remove it
According to @mcdee review of clients seems that support of the meta element is poor. If no-one has complained should mean that no consumer is dependent on it.
To address this one-off oddity we could do a breaking change on route v1 and mark the meta property as optional. Then only Nimbus needs to fix the route to be compliant, which @arnetheduck is already keen on doing.
Closes #366