Closed kirypto closed 2 years ago
When parsing a JSON spec, if the contact object is specified but missing any of name, url, or email, a SpecError is raised:
contact
name
url
email
SpecError
openapi3.errors.SpecError: Expected info.contact to be of type Contact, with required fields ['name', 'url', 'email']
As far as I can tell from research, all three of these fields are optional:
email: "apiteam@swagger.io"
I will note that I fairly new to open source contributions, so please let me know if there is anything more that should be provided.
Thanks for the report! I opened #83 to resolve this issue.
When parsing a JSON spec, if the
contact
object is specified but missing any ofname
,url
, oremail
, aSpecError
is raised:As far as I can tell from research, all three of these fields are optional:
email: "apiteam@swagger.io"
in thecontact
object.