From 2027d819dfe0624fc7d3170c69f1de652d41380e Mon Sep 17 00:00:00 2001 From: Tomas Fernandez Date: Wed, 18 Nov 2020 10:38:04 -0300 Subject: [PATCH] Fix: added json schema draft version to not depend on an implementations default version if entry does not exist --- .../include-type-json-01/files/accountCorrect.json | 5 +++-- .../External Types/include-type-json-02/files/account.json | 7 ++++--- .../invalid-used-in-queryParameters.raml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/raml-1.0/Types/External Types/include-type-json-01/files/accountCorrect.json b/tests/raml-1.0/Types/External Types/include-type-json-01/files/accountCorrect.json index 1624cd65..9f1ed92a 100644 --- a/tests/raml-1.0/Types/External Types/include-type-json-01/files/accountCorrect.json +++ b/tests/raml-1.0/Types/External Types/include-type-json-01/files/accountCorrect.json @@ -1,9 +1,10 @@ { + "$schema": "http://json-schema.org/draft-03/schema#", + "type": "object", "properties": { "auth_token": { "required": false, "type": "string" } - }, - "type": "object" + } } diff --git a/tests/raml-1.0/Types/External Types/include-type-json-02/files/account.json b/tests/raml-1.0/Types/External Types/include-type-json-02/files/account.json index 0c6f1ade..b03659f9 100644 --- a/tests/raml-1.0/Types/External Types/include-type-json-02/files/account.json +++ b/tests/raml-1.0/Types/External Types/include-type-json-02/files/account.json @@ -1,4 +1,7 @@ { + "$schema": "http://json-schema.org/draft-03/schema#", + "type": "object", + "required": false, "properties": { "auth_token": { "required": false, @@ -42,7 +45,5 @@ "type": "object", "required": false } - }, - "required": false, - "type": "object" + } } diff --git a/tests/raml-1.0/Types/External Types/include-type-json-02/invalid-used-in-queryParameters.raml b/tests/raml-1.0/Types/External Types/include-type-json-02/invalid-used-in-queryParameters.raml index a2a45d09..3521306a 100644 --- a/tests/raml-1.0/Types/External Types/include-type-json-02/invalid-used-in-queryParameters.raml +++ b/tests/raml-1.0/Types/External Types/include-type-json-02/invalid-used-in-queryParameters.raml @@ -5,4 +5,4 @@ title: API get: queryParameters: year: - type: !include account.json + type: !include files/account.json