'External Documentation' URL of the operation is not a proper URL
Issue ID: v3-warning-operation-externaldocumentation-url
Description
The URL defined in the url
field of the External Documentation
object for the API operation in question is not a proper URL.
You can use the externalDocs field to reference an external resource that offers extended documentation for your API. This is field is optional. However, if you do reference external documentation, the OpenAPI Specification (OAS) requires that all URLs in the API contract must be proper URLs in a valid format.
For more details, see the OpenAPI Specification.
Example
The following is an example of how this issue could look in your API definition. In this case, the URL is missing the protocol prefix and has a space in the middle:
{
"get": {
"description": "Returns all pets from the system that the user has access to",
"produces": [
"application/json"
],
"externalDocs" : {
"description": "Find more info here",
"url": "will add later"
}
// ...
}
}
Remediation
Make sure that all URLs in your API are proper URLs and have a valid format.
{
"get": {
"description": "Returns all pets from the system that the user has access to",
"produces": [
"application/json"
],
"externalDocs" : {
"description": "Find more info here",
"url": "http://petstore.api.com/docs/pets"
}
// ...
}
}