Closed cap10morgan closed 1 year ago
I removed all of the trailing commas in the swagger-test data in https://github.com/metosin/malli/pull/900/commits/26bda9b12bbc14b00f5006aab59fb52423ffba3c, but let me know if you'd rather I not do that. I was having to remove the ones from the deleted non-root definitions in the test expectations and decided it might be better to just clean it all up in one commit first.
The one failing test also failed before my changes.
Thanks for removing the commas in a separate commit!
All tests seem to pass now. The failures were caused by a clojars outage, but now all the deps downloaded fine and the tests passed as well.
I have a nagging thought that the :definitions
inside :schema
might be worth leaving in. I'll investigate a bit and see what various validators say.
Ok, we only need the top-level :definitions
since all the references are of the form "$ref": "#/definitions/...
. I think this is good to go.
OK, and now with this merged reitit-malli's test expectations need to be updated, at least. I'll work up a PR for that push those changes to the existing PR later today.
As per discussion in https://github.com/metosin/reitit/pull/589#discussion_r1174793547 this removes the non-root
:definitions
from the swagger output.