diff --git a/src/negative_test/specmatic/v3-run-options-openapi-spec-swagger-url-wrong-type.json b/src/negative_test/specmatic/v3-run-options-openapi-spec-swagger-url-wrong-type.json new file mode 100644 index 00000000000..334e64b4e5e --- /dev/null +++ b/src/negative_test/specmatic/v3-run-options-openapi-spec-swagger-url-wrong-type.json @@ -0,0 +1,19 @@ +{ + "components": { + "runOptions": { + "orderApiService": { + "openapi": { + "specs": [ + { + "spec": { + "swaggerUrl": 8080 + } + } + ], + "type": "test" + } + } + } + }, + "version": 3 +} diff --git a/src/schemas/json/specmatic.json b/src/schemas/json/specmatic.json index 166a72f330f..5d326043121 100644 --- a/src/schemas/json/specmatic.json +++ b/src/schemas/json/specmatic.json @@ -1997,6 +1997,9 @@ "baseUrl": { "$ref": "#/definitions/SubstitutableString" }, + "swaggerUrl": { + "$ref": "#/definitions/SubstitutableString" + }, "overlayFilePath": { "$ref": "#/definitions/SubstitutableString" }, diff --git a/src/test/specmatic/v3-run-options-openapi-spec-swagger-url.json b/src/test/specmatic/v3-run-options-openapi-spec-swagger-url.json new file mode 100644 index 00000000000..11429448ccd --- /dev/null +++ b/src/test/specmatic/v3-run-options-openapi-spec-swagger-url.json @@ -0,0 +1,19 @@ +{ + "components": { + "runOptions": { + "orderApiService": { + "openapi": { + "specs": [ + { + "spec": { + "swaggerUrl": "http://localhost:8080/v3/api-docs" + } + } + ], + "type": "test" + } + } + } + }, + "version": 3 +}