-
Notifications
You must be signed in to change notification settings - Fork 91
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
Specification next/previous modelled as lists #21
Comments
It's not common but when you have a specification splits or merges, I'll rename the fields in the results list. |
@darobin the fix is now deployed |
Verified and shipped a new version to match. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the JSON returns for next and previous on specifications are modelled as lists. This may be correct (though I can't find examples) but it's hard to guess since before of #20 they show up as scalars anyway.
If there is only ever one prev/next, these should be exposed as scalars directly and not a pageable result.
If they are meant to be exposed as lists, then it would be very nice if the field name in the list results'
_link
were callednext
andprevious
instead of the currentversions
. In most of the rest of the API, there is a mapping there, but not here. That means ad hoc code to access these specific fields.Similar questions apply to
supersede(d|s)
.The text was updated successfully, but these errors were encountered: