Adjust new [swagger] endpoint (#4193)

* Change to new Url supporting OAS 3

* Change to new URL
This commit is contained in:
Michael Schmitz
2019-10-18 16:10:57 +02:00
committed by Caleb Cartwright
parent 0cb19e692b
commit c729ef8ece
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ module.exports = class SwaggerValidatorService extends BaseJsonService {
}
async fetch({ scheme, urlF }) {
const url = 'http://online.swagger.io/validator/debug'
const url = 'http://validator.swagger.io/validator/debug'
return this._requestJson({
url,
schema: validatorSchema,

View File

@@ -1,7 +1,7 @@
'use strict'
const getURL = '/https/example.com/example.json.json'
const apiURL = 'http://online.swagger.io'
const apiURL = 'http://validator.swagger.io'
const apiGetURL = '/validator/debug'
const apiGetQueryParams = { url: 'https://example.com/example.json' }