top | item 39339125

(no title)

jmg_ | 2 years ago

While I'm not currently using rspec, rswag/rswag is library for rspec I envy:

https://github.com/rswag/rswag

I'm currently using thoughtbot/json_matchers w/ partials of my OpenAPI spec, but its not nearly as user friendly:

https://github.com/thoughtbot/json_matchers

discuss

order

e12e|2 years ago

My only moments of joy derived from rspec is through rswag. But it pretty much (ab)uses rspec to give you design-by-contract for JSON api.

I would've enjoyed it more if it didn't try so hard to mimic a JSON schema language as an embedded DSL in ruby.

It's verbose and error prone, with the dubious benefit of looking familiar.