It's possible for a Swagger spec to have undefined references. The following check returns a nonempty list if that happens. Any such swagger spec will cause trouble with any tools trying to use it. I'm not quite sure where it would fit in Data.Swagger.Schema.Validation as those concern validating data against a spec but this is about the validity of the spec itself.
Here's an example of a faulty Swagger file. I'm afraid it's not a minimal example. Running openapi-spec-validator --schema 2.0 on it gives an error Unresolvable JSON pointer: 'definitions/PaperCode'. I didn't see that swagger2 library had any call that would have given the same information about it.
It's possible for a Swagger spec to have undefined references. The following check returns a nonempty list if that happens. Any such swagger spec will cause trouble with any tools trying to use it. I'm not quite sure where it would fit in
Data.Swagger.Schema.Validation
as those concern validating data against a spec but this is about the validity of the spec itself.Here's an example of a faulty Swagger file. I'm afraid it's not a minimal example. Running
openapi-spec-validator --schema 2.0
on it gives an errorUnresolvable JSON pointer: 'definitions/PaperCode'
. I didn't see that swagger2 library had any call that would have given the same information about it.