afulki
Validate JSON response against SWAGGER document
Simply,
I have a swagger document for a web-service, I want to validate that the response from the service (JSON) matches the format defined by the SWAGGER doc.
I have found myriad ways of testing to make sure the swagger is valid, and for testing against a JSON Schema, but next to nothing on validating data against the swagger doc.
Thanks in advance
Gary
Most Liked
aseigo
Have you tried the validation features in GitHub - xerions/phoenix_swagger: Swagger integration to Phoenix framework · GitHub? Perhaps the test response validator could be of use?
mbuhot
Which version of swagger are you using?
open_api_spex is a bit like phoenix swagger but targets swagger (open api) 3.0.
It doesn’t support reading the swagger document from file yet, so might not be what you’re looking for.
afulki
Thanks, will look there!
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








