diff --git a/packages/rulesets/src/oas/schemas/oas/v3.1/index.json b/packages/rulesets/src/oas/schemas/oas/v3.1/index.json index 95a33ef24..3961aa28c 100644 --- a/packages/rulesets/src/oas/schemas/oas/v3.1/index.json +++ b/packages/rulesets/src/oas/schemas/oas/v3.1/index.json @@ -803,7 +803,7 @@ "value": true, "externalValue": { "type": "string", - "format": "uri" + "format": "uri-reference" } }, "not": { diff --git a/test-harness/scenarios/oas3.1/petstore.scenario b/test-harness/scenarios/oas3.1/petstore.scenario index a7bb6f96b..9711cd2ff 100644 --- a/test-harness/scenarios/oas3.1/petstore.scenario +++ b/test-harness/scenarios/oas3.1/petstore.scenario @@ -92,6 +92,8 @@ paths: value: lastName: Baker dateOfBirth: '1985-10-02' + Example With External Value: + externalValue: ./{asset:externalExample.json} /users: post: summary: Create New User @@ -194,6 +196,10 @@ components: extends: [[spectral:oas, off]] rules: oas3-schema: error +====asset:externalExample.json==== +{ + "lastName": "Watson" +} ====command==== {bin} lint {document} --ruleset {asset:ruleset.yaml} ====stdout====