‘Contact’ object URL must be a proper URL

Description

The URL defined the url field  of the contact object is not a proper URL. OpenAPI Specification (OAS) requires that all URLs in the API contract must be proper URLs in a valid format.

Example

The following is an example of how an invalid URL could look in your API definition. In this example, the URL is missing the protocol and has an extra space in the middle:

{
  "name": "API Support",
  "url": "www.swagger.io/ support",
  "email": "support@swagger.io"
}

Remediation

Make sure that all URLs in your API are proper URLs and have a valid format.

{
  "name": "API Support",
  "url": "http://www.swagger.io/support",
  "email": "support@swagger.io"
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy