inconsistent JSON keywords #9269
Replies: 5 comments 1 reply
-
We've already fixed this a bunch of times add the correct key as decided by the group, leaving the old one If it's extremely new json that is not in a release just fix it. |
Beta Was this translation helpful? Give feedback.
-
Works for me. I was also thinking about some way to avoid this to happen. But no idea how I could test this in a PR. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure where we can register the list of acceptable words that would make the developer check there when they couldn't be bothered to see if there was already an accepted word instead of inventing their own. We as reviewers of the code just need to be cognizant of this and try to keep it in mind. |
Beta Was this translation helpful? Give feedback.
-
Something like Reviewer checklist would be handy :) |
Beta Was this translation helpful? Give feedback.
-
Don't know how to handle this other than fixing it when it crops up and hoping we catch it in review. |
Beta Was this translation helpful? Give feedback.
-
This is not really a "bug", but wanted to record this for discussion.
On the various json outputs we have inconsistent names of the same fields
Example on OSPFv2 outputs:
on
show ip ospf database json
vsshow ip ospf database external json
:advertisedRouter
vsadvertisingRouter
linkStateId
vslsId
lsaSeqNumber
vssequenceNumber
Same issue on various other outputs.
I don't think we can change these keys anymore (at least not once they are in a release)
Questions:
Beta Was this translation helpful? Give feedback.
All reactions