Open philsturgeon opened 5 years ago
Actually, im going to have to leave this right here I'm affraid. My approach to mocking for now is going to be trying to help Prism upgrade to v3.0.
If you'd like to continue this, there is a great article on v3.0 differences.
https://dev.to/mikeralphson/comparing-openapiswagger-20-and-300-rc1
A lot of these test failures are down to your tests asserting very v2.0 specific things, so changing this is mostly changing the tests. The collectionFormat stuff is tricky too, as that changed a lot. No more explicit delimeters, and there's a whole matrix of options to support, and objects should be supported instead of just arrays. That's about where I left this work on Friday.
https://swagger.io/specification/#style-values
Best of luck to ya!
Seeing as Swagger Parser supports OpenAPI v3.0 it should be pretty much free to upgrade.
It's taking a bit of work but I'll get there.