When using relative server urls in OpenAPI 3.0 like shown:
"servers": [
{
"url": "/api/foo"
}
]
An error is thrown:
TypeError [ERR_INVALID_URL]: Invalid URL: /api/foo
Stack trace points to the error occurring here. It seems that all values in the url field are assumed to be complete urls. Is there some way we can check for a relative url before passing to the URL constructor?