Closed caindy closed 5 months ago
I have a much cleaner what to reuse responses that I'm going to push to this branch today.
There are still a couple of constants to pull out, but this is substantively done. I was able to remove 1200 lines and get rid of a lot of warnings from the linters.
The main things here are:
array-max-*.yaml
files. I tried to name the files after the natural upper bound that they all share. This makes it clearer what the collection describes, too, besides not having to repeat the actual constant.openapi.yaml
file. This means that all the header definitions can be references in the bundle
d spec which had ballooned past 12k lines. It's now down to ~4500, which is what the original unsplit spec sat at, IIRC.
The immediate impetus for this change was to use the
application/problem+json
response for 400s, but I took the opportunity to apply the head/get refactoring for those paths that haveHEAD
defined.I was careful not to introduce or to remove a 410 Gone response where it seemed inappropriate. Reference data comes to mind.
There remains a need to clean up or refactor a few paths that were left mostly as-is because they didn't have a
HEAD
.