From 1efbd0a6c29e8fe12c398a42b32a19100b3253a5 Mon Sep 17 00:00:00 2001 From: Marco Friso Date: Tue, 4 Aug 2020 13:52:02 +0200 Subject: [PATCH 1/5] feat(oas2): add format link Closes APIARY-6105 --- packages/openapi2-parser/CHANGELOG.md | 4 + packages/openapi2-parser/lib/parser.js | 13 + .../test/fixtures/format-link.json | 100 +++++++ .../test/fixtures/format-link.sourcemap.json | 250 ++++++++++++++++++ .../test/fixtures/format-link.yaml | 10 + 5 files changed, 377 insertions(+) create mode 100644 packages/openapi2-parser/test/fixtures/format-link.json create mode 100644 packages/openapi2-parser/test/fixtures/format-link.sourcemap.json create mode 100644 packages/openapi2-parser/test/fixtures/format-link.yaml diff --git a/packages/openapi2-parser/CHANGELOG.md b/packages/openapi2-parser/CHANGELOG.md index ddfaae23b..06fcd058d 100644 --- a/packages/openapi2-parser/CHANGELOG.md +++ b/packages/openapi2-parser/CHANGELOG.md @@ -1,5 +1,9 @@ # API Elements: OpenAPI 2 Parser Changelog +## Master + +- added a Link element to the specific format/version in the parse result. + ## 0.32.2 (2020-07-22) ### Bug Fixes diff --git a/packages/openapi2-parser/lib/parser.js b/packages/openapi2-parser/lib/parser.js index be0941589..a99e1bbc4 100644 --- a/packages/openapi2-parser/lib/parser.js +++ b/packages/openapi2-parser/lib/parser.js @@ -197,6 +197,7 @@ class Parser { // By default there are no groups, just the root API element this.group = this.api; + this.addFormatLink(); this.handleSwaggerInfo(); this.handleSwaggerHost(); this.handleSwaggerAuth(); @@ -325,6 +326,18 @@ class Parser { }); } + // Add the link to the format version specs + addFormatLink() { + const { Link } = this.namespace.elements; + const link = new Link(); + + link.title = 'OpenAPI 2'; + link.relation = 'via'; + link.href = 'https://spec.openapis.org/oas/v2.0'; + + return this.api.links.push(link); + } + // Converts the Swagger title and description handleSwaggerInfo() { const { Copy } = this.namespace.elements; diff --git a/packages/openapi2-parser/test/fixtures/format-link.json b/packages/openapi2-parser/test/fixtures/format-link.json new file mode 100644 index 000000000..2df745157 --- /dev/null +++ b/packages/openapi2-parser/test/fixtures/format-link.json @@ -0,0 +1,100 @@ +{ + "element": "parseResult", + "content": [ + { + "element": "category", + "meta": { + "classes": { + "element": "array", + "content": [ + { + "element": "string", + "content": "api" + } + ] + }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, + "title": { + "element": "string", + "content": "Format Link" + } + }, + "attributes": { + "version": { + "element": "string", + "content": "1.0.0" + } + }, + "content": [ + { + "element": "resource", + "attributes": { + "href": { + "element": "string", + "content": "/greeting" + } + }, + "content": [ + { + "element": "transition", + "content": [ + { + "element": "httpTransaction", + "content": [ + { + "element": "httpRequest", + "attributes": { + "method": { + "element": "string", + "content": "GET" + } + } + }, + { + "element": "httpResponse", + "attributes": { + "statusCode": { + "element": "string", + "content": "200" + } + }, + "content": [ + { + "element": "copy", + "content": "OK" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json b/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json new file mode 100644 index 000000000..eb9109529 --- /dev/null +++ b/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json @@ -0,0 +1,250 @@ +{ + "element": "parseResult", + "content": [ + { + "element": "category", + "meta": { + "classes": { + "element": "array", + "content": [ + { + "element": "string", + "content": "api" + } + ] + }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, + "title": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 40 + }, + { + "element": "number", + "content": 18 + } + ] + } + ] + } + ] + } + }, + "content": "Format Link" + } + }, + "attributes": { + "version": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 23 + }, + { + "element": "number", + "content": 14 + } + ] + } + ] + } + ] + } + }, + "content": "1.0.0" + } + }, + "content": [ + { + "element": "resource", + "attributes": { + "href": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 68 + }, + { + "element": "number", + "content": 79 + } + ] + } + ] + } + ] + } + }, + "content": "/greeting" + } + }, + "content": [ + { + "element": "transition", + "content": [ + { + "element": "httpTransaction", + "content": [ + { + "element": "httpRequest", + "attributes": { + "method": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 85 + }, + { + "element": "number", + "content": 62 + } + ] + } + ] + } + ] + } + }, + "content": "GET" + } + } + }, + { + "element": "httpResponse", + "attributes": { + "statusCode": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 115 + }, + { + "element": "number", + "content": 32 + } + ] + } + ] + } + ] + } + }, + "content": "200" + } + }, + "content": [ + { + "element": "copy", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 132 + }, + { + "element": "number", + "content": 15 + } + ] + } + ] + } + ] + } + }, + "content": "OK" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/packages/openapi2-parser/test/fixtures/format-link.yaml b/packages/openapi2-parser/test/fixtures/format-link.yaml new file mode 100644 index 000000000..14ed6c098 --- /dev/null +++ b/packages/openapi2-parser/test/fixtures/format-link.yaml @@ -0,0 +1,10 @@ +swagger: '2.0' +info: + version: 1.0.0 + title: Format Link +paths: + '/greeting': + get: + responses: + '200': + description: OK \ No newline at end of file From 827361bf0dc3c069b3c52e139f6ce34295ca8665 Mon Sep 17 00:00:00 2001 From: Marco Friso Date: Tue, 4 Aug 2020 13:53:33 +0200 Subject: [PATCH 2/5] chore(oas2): add format link to fixtures --- .../test/fixtures/auth-extensions.json | 24 ++++++ .../fixtures/auth-extensions.sourcemap.json | 24 ++++++ .../test/fixtures/auth-multi-consumes.json | 24 ++++++ .../auth-multi-consumes.sourcemap.json | 24 ++++++ .../test/fixtures/circular-example.json | 24 ++++++ .../fixtures/circular-example.sourcemap.json | 24 ++++++ .../test/fixtures/consumes-invalid-type.json | 24 ++++++ .../consumes-invalid-type.sourcemap.json | 24 ++++++ .../fixtures/consumes-multipart-file.json | 24 ++++++ .../consumes-multipart-file.sourcemap.json | 24 ++++++ ...-structure-generation-nullable-member.json | 24 ++++++ ...-generation-nullable-member.sourcemap.json | 24 ++++++ .../data-structure-generation-ref.json | 24 ++++++ ...ta-structure-generation-ref.sourcemap.json | 24 ++++++ .../fixtures/data-structure-generation.json | 24 ++++++ .../data-structure-generation.sourcemap.json | 24 ++++++ .../test/fixtures/external-dereferencing.json | 24 ++++++ .../external-dereferencing.sourcemap.json | 24 ++++++ .../test/fixtures/headers-type-warning.json | 24 ++++++ .../headers-type-warning.sourcemap.json | 24 ++++++ .../test/fixtures/info-contact.json | 27 ++++++- .../test/fixtures/info-contact.sourcemap.json | 77 ++++++++++++------- .../test/fixtures/info-termsOfService.json | 27 ++++++- .../info-termsOfService.sourcemap.json | 77 ++++++++++++------- .../test/fixtures/invalid-media-type.json | 24 ++++++ .../invalid-media-type.sourcemap.json | 24 ++++++ .../test/fixtures/invalid-reference.json | 24 ++++++ .../fixtures/invalid-reference.sourcemap.json | 24 ++++++ .../json-body-generation-array-object.json | 24 ++++++ ...ody-generation-array-object.sourcemap.json | 24 ++++++ .../json-body-generation-bad-pattern.json | 24 ++++++ ...body-generation-bad-pattern.sourcemap.json | 24 ++++++ .../test/fixtures/json-body-generation.json | 24 ++++++ .../json-body-generation.sourcemap.json | 24 ++++++ .../operation-consumes-invalid-type.json | 24 ++++++ ...ation-consumes-invalid-type.sourcemap.json | 24 ++++++ .../test/fixtures/operation-extension.json | 24 ++++++ .../operation-extension.sourcemap.json | 24 ++++++ .../operation-produces-invalid-type.json | 24 ++++++ ...ation-produces-invalid-type.sourcemap.json | 24 ++++++ .../options/generateMessageBody-false.json | 24 ++++++ .../options/generateMessageBody-true.json | 24 ++++++ .../generateMessageBodySchema-false.json | 24 ++++++ .../generateMessageBodySchema-true.json | 24 ++++++ .../parameter-array-default-warning.json | 24 ++++++ ...meter-array-default-warning.sourcemap.json | 24 ++++++ .../parameters-header-type-warning.json | 24 ++++++ ...ameters-header-type-warning.sourcemap.json | 24 ++++++ .../test/fixtures/produces-invalid-type.json | 24 ++++++ .../produces-invalid-type.sourcemap.json | 24 ++++++ .../test/fixtures/request-body-primitive.json | 24 ++++++ .../request-body-primitive.sourcemap.json | 24 ++++++ .../schema-reference-nullable-enum.json | 24 ++++++ ...ema-reference-nullable-enum.sourcemap.json | 24 ++++++ .../schema-references-example-invalid.json | 24 ++++++ ...-references-example-invalid.sourcemap.json | 24 ++++++ .../openapi2-parser/test/fixtures/tags.json | 24 ++++++ .../test/fixtures/tags.sourcemap.json | 24 ++++++ .../test/fixtures/x-summary-type.json | 24 ++++++ .../fixtures/x-summary-type.sourcemap.json | 24 ++++++ 60 files changed, 1486 insertions(+), 66 deletions(-) diff --git a/packages/openapi2-parser/test/fixtures/auth-extensions.json b/packages/openapi2-parser/test/fixtures/auth-extensions.json index 2e394f6bf..941f73023 100644 --- a/packages/openapi2-parser/test/fixtures/auth-extensions.json +++ b/packages/openapi2-parser/test/fixtures/auth-extensions.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Authentication with extensions" diff --git a/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json b/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json index c495d1ed7..dbfce8d5e 100644 --- a/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json index dc9caf323..3df07c083 100644 --- a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json +++ b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Authentication with multiple consumes" diff --git a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json index 55c553278..585b7f24f 100644 --- a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/circular-example.json b/packages/openapi2-parser/test/fixtures/circular-example.json index f0508f244..51d77c374 100644 --- a/packages/openapi2-parser/test/fixtures/circular-example.json +++ b/packages/openapi2-parser/test/fixtures/circular-example.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Test circular reference in example" diff --git a/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json b/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json index 753e8f85e..85d3d0c4e 100644 --- a/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json index 3168a393d..4d60f161f 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Consumes JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json index a37f2226f..e9b8078bf 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json index f1f500d79..f739145e4 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json +++ b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Consumes Multipart Form Data with file" diff --git a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json index 448e60208..4e41a8dd6 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json index c6228431e..92f040434 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Test API" diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json index b973a032e..b35c29adc 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json index ee1c7bc78..6d1357327 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json index b8f62eb7f..ed639e737 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation.json b/packages/openapi2-parser/test/fixtures/data-structure-generation.json index f400e46f8..abf6a8355 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json b/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json index e70428a86..2fdd19a85 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/external-dereferencing.json b/packages/openapi2-parser/test/fixtures/external-dereferencing.json index 1b4423f98..f65dc8fa9 100644 --- a/packages/openapi2-parser/test/fixtures/external-dereferencing.json +++ b/packages/openapi2-parser/test/fixtures/external-dereferencing.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Dereferencing a local file" diff --git a/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json b/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json index 76514346f..6b13824b2 100644 --- a/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/headers-type-warning.json b/packages/openapi2-parser/test/fixtures/headers-type-warning.json index 177df5cd0..13030127d 100644 --- a/packages/openapi2-parser/test/fixtures/headers-type-warning.json +++ b/packages/openapi2-parser/test/fixtures/headers-type-warning.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Example Header Values" diff --git a/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json b/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json index d512f3695..82dff1696 100644 --- a/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-contact.json b/packages/openapi2-parser/test/fixtures/info-contact.json index 64d8a4b26..89bc8bbad 100644 --- a/packages/openapi2-parser/test/fixtures/info-contact.json +++ b/packages/openapi2-parser/test/fixtures/info-contact.json @@ -13,13 +13,28 @@ } ] }, - "title": { - "element": "string", - "content": "Sample Store App" - }, "links": { "element": "array", "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + }, { "element": "link", "meta": { @@ -53,6 +68,10 @@ } } ] + }, + "title": { + "element": "string", + "content": "Sample Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json b/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json index 08c671616..4d9231089 100644 --- a/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json @@ -13,38 +13,28 @@ } ] }, - "title": { - "element": "string", - "attributes": { - "sourceMap": { - "element": "array", - "content": [ - { - "element": "sourceMap", - "content": [ - { - "element": "array", - "content": [ - { - "element": "number", - "content": 23 - }, - { - "element": "number", - "content": 23 - } - ] - } - ] - } - ] - } - }, - "content": "Sample Store App" - }, "links": { "element": "array", "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + }, { "element": "link", "meta": { @@ -128,6 +118,35 @@ } } ] + }, + "title": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 23 + }, + { + "element": "number", + "content": 23 + } + ] + } + ] + } + ] + } + }, + "content": "Sample Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-termsOfService.json b/packages/openapi2-parser/test/fixtures/info-termsOfService.json index d2c229bd7..e73bc1395 100644 --- a/packages/openapi2-parser/test/fixtures/info-termsOfService.json +++ b/packages/openapi2-parser/test/fixtures/info-termsOfService.json @@ -13,13 +13,28 @@ } ] }, - "title": { - "element": "string", - "content": "Sample Pet Store App" - }, "links": { "element": "array", "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + }, { "element": "link", "attributes": { @@ -34,6 +49,10 @@ } } ] + }, + "title": { + "element": "string", + "content": "Sample Pet Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json b/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json index 1e0e2962b..4c2c7eb77 100644 --- a/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json @@ -13,38 +13,28 @@ } ] }, - "title": { - "element": "string", - "attributes": { - "sourceMap": { - "element": "array", - "content": [ - { - "element": "sourceMap", - "content": [ - { - "element": "array", - "content": [ - { - "element": "number", - "content": 23 - }, - { - "element": "number", - "content": 27 - } - ] - } - ] - } - ] - } - }, - "content": "Sample Pet Store App" - }, "links": { "element": "array", "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + }, { "element": "link", "attributes": { @@ -82,6 +72,35 @@ } } ] + }, + "title": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 23 + }, + { + "element": "number", + "content": 27 + } + ] + } + ] + } + ] + } + }, + "content": "Sample Pet Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/invalid-media-type.json b/packages/openapi2-parser/test/fixtures/invalid-media-type.json index 862bafc16..169193e0b 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-media-type.json +++ b/packages/openapi2-parser/test/fixtures/invalid-media-type.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Test bad media type" diff --git a/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json index 457a0e1d5..a181fcd1b 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/invalid-reference.json b/packages/openapi2-parser/test/fixtures/invalid-reference.json index f8666f37d..3f9ce2aa1 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-reference.json +++ b/packages/openapi2-parser/test/fixtures/invalid-reference.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Test References" diff --git a/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json b/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json index 466ca57b5..b3ac5abb8 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json index cee031215..a3fd0c8de 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "JSON Body Generation with Array of Object" diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json index 790c7a0de..928dfbfa3 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json index 664c30347..8f89c805f 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Produces JSON with pattern" diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json index 0f9d8e9eb..586d16e2a 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation.json b/packages/openapi2-parser/test/fixtures/json-body-generation.json index 402ed260a..ddc4b2658 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json b/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json index 97fe21ec2..243d2a572 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json index b049013d4..d9b29a7eb 100644 --- a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Consumes JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json index 3d5ff6d2c..7bdeccb9b 100644 --- a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/operation-extension.json b/packages/openapi2-parser/test/fixtures/operation-extension.json index 93dcb929c..7b9453753 100644 --- a/packages/openapi2-parser/test/fixtures/operation-extension.json +++ b/packages/openapi2-parser/test/fixtures/operation-extension.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Simple API overview" diff --git a/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json b/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json index b47847fba..2047fd4d4 100644 --- a/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json index 0dc2985f8..ae21129d8 100644 --- a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Produces JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json index 80069e183..7dcb0af9e 100644 --- a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json index 250a902ff..386fbb34d 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json index 402ed260a..ddc4b2658 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json index 73233c332..081487551 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json index 402ed260a..ddc4b2658 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json index 677d1f1dc..adb6e1bd6 100644 --- a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json +++ b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Parameters" diff --git a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json index fd728b8f1..c0e65b8b0 100644 --- a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json index c51a43e99..340983a01 100644 --- a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json +++ b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Request Header Parameter Example" diff --git a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json index e7e924eb3..5059632c7 100644 --- a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/produces-invalid-type.json b/packages/openapi2-parser/test/fixtures/produces-invalid-type.json index 77ceb9b37..239af290f 100644 --- a/packages/openapi2-parser/test/fixtures/produces-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/produces-invalid-type.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Produces JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json index e806e2236..047d5baa3 100644 --- a/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/request-body-primitive.json b/packages/openapi2-parser/test/fixtures/request-body-primitive.json index 0c941630e..34cce893e 100644 --- a/packages/openapi2-parser/test/fixtures/request-body-primitive.json +++ b/packages/openapi2-parser/test/fixtures/request-body-primitive.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Primitive Body" diff --git a/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json b/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json index 27dae9a25..5ad80bd53 100644 --- a/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json index 218c58d54..481156a65 100644 --- a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json +++ b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "nullable enum" diff --git a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json index d1ce6da28..03e4cb739 100644 --- a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json index 987803b68..45805dd90 100644 --- a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json +++ b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "My API" diff --git a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json index 1f028d0a8..849ca072c 100644 --- a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/tags.json b/packages/openapi2-parser/test/fixtures/tags.json index 38c6809ca..5502f648c 100644 --- a/packages/openapi2-parser/test/fixtures/tags.json +++ b/packages/openapi2-parser/test/fixtures/tags.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Tags on some of the operations" diff --git a/packages/openapi2-parser/test/fixtures/tags.sourcemap.json b/packages/openapi2-parser/test/fixtures/tags.sourcemap.json index 7772257aa..5741e9d3e 100644 --- a/packages/openapi2-parser/test/fixtures/tags.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/tags.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/x-summary-type.json b/packages/openapi2-parser/test/fixtures/x-summary-type.json index a9693f3eb..e6e0e2efc 100644 --- a/packages/openapi2-parser/test/fixtures/x-summary-type.json +++ b/packages/openapi2-parser/test/fixtures/x-summary-type.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "content": "Resource summary as incorrect type coerces to string" diff --git a/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json index 8f7d2d86b..33cb016f4 100644 --- a/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json @@ -13,6 +13,30 @@ } ] }, + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + }, "title": { "element": "string", "attributes": { From 68d4669ac324c8c88ef8d6460714e21f04bdc599 Mon Sep 17 00:00:00 2001 From: Marco Friso Date: Tue, 4 Aug 2020 16:17:25 +0200 Subject: [PATCH 3/5] fix(oas3): change format link --- packages/openapi2-parser/lib/parser.js | 2 +- .../test/fixtures/format-link.json | 50 ++++++++++--------- .../test/fixtures/format-link.sourcemap.json | 50 ++++++++++--------- 3 files changed, 53 insertions(+), 49 deletions(-) diff --git a/packages/openapi2-parser/lib/parser.js b/packages/openapi2-parser/lib/parser.js index a99e1bbc4..0fa65c4a0 100644 --- a/packages/openapi2-parser/lib/parser.js +++ b/packages/openapi2-parser/lib/parser.js @@ -335,7 +335,7 @@ class Parser { link.relation = 'via'; link.href = 'https://spec.openapis.org/oas/v2.0'; - return this.api.links.push(link); + return this.result.links.push(link); } // Converts the Swagger title and description diff --git a/packages/openapi2-parser/test/fixtures/format-link.json b/packages/openapi2-parser/test/fixtures/format-link.json index 2df745157..a1f7b52a9 100644 --- a/packages/openapi2-parser/test/fixtures/format-link.json +++ b/packages/openapi2-parser/test/fixtures/format-link.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Format Link" diff --git a/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json b/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json index eb9109529..c0695a2cc 100644 --- a/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/format-link.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { From d6c3c44394e0dbc0f1c437084c9db2bf598c8559 Mon Sep 17 00:00:00 2001 From: Marco Friso Date: Tue, 4 Aug 2020 16:18:07 +0200 Subject: [PATCH 4/5] chore(oas2): change format link to fixtures --- .../test/fixtures/auth-extensions.json | 50 +++++---- .../fixtures/auth-extensions.sourcemap.json | 50 +++++---- .../test/fixtures/auth-multi-consumes.json | 50 +++++---- .../auth-multi-consumes.sourcemap.json | 50 +++++---- .../test/fixtures/circular-example.json | 50 +++++---- .../fixtures/circular-example.sourcemap.json | 50 +++++---- .../test/fixtures/consumes-invalid-type.json | 50 +++++---- .../consumes-invalid-type.sourcemap.json | 50 +++++---- .../fixtures/consumes-multipart-file.json | 50 +++++---- .../consumes-multipart-file.sourcemap.json | 50 +++++---- ...-structure-generation-nullable-member.json | 50 +++++---- ...-generation-nullable-member.sourcemap.json | 50 +++++---- .../data-structure-generation-ref.json | 50 +++++---- ...ta-structure-generation-ref.sourcemap.json | 50 +++++---- .../fixtures/data-structure-generation.json | 50 +++++---- .../data-structure-generation.sourcemap.json | 50 +++++---- .../test/fixtures/external-dereferencing.json | 50 +++++---- .../external-dereferencing.sourcemap.json | 50 +++++---- .../test/fixtures/headers-type-warning.json | 50 +++++---- .../headers-type-warning.sourcemap.json | 50 +++++---- .../test/fixtures/info-contact.json | 53 +++++---- .../test/fixtures/info-contact.sourcemap.json | 103 ++++++++++-------- .../test/fixtures/info-termsOfService.json | 53 +++++---- .../info-termsOfService.sourcemap.json | 103 ++++++++++-------- .../test/fixtures/invalid-media-type.json | 50 +++++---- .../invalid-media-type.sourcemap.json | 50 +++++---- .../test/fixtures/invalid-reference.json | 50 +++++---- .../fixtures/invalid-reference.sourcemap.json | 50 +++++---- .../json-body-generation-array-object.json | 50 +++++---- ...ody-generation-array-object.sourcemap.json | 50 +++++---- .../json-body-generation-bad-pattern.json | 50 +++++---- ...body-generation-bad-pattern.sourcemap.json | 50 +++++---- .../test/fixtures/json-body-generation.json | 50 +++++---- .../json-body-generation.sourcemap.json | 50 +++++---- .../operation-consumes-invalid-type.json | 50 +++++---- ...ation-consumes-invalid-type.sourcemap.json | 50 +++++---- .../test/fixtures/operation-extension.json | 50 +++++---- .../operation-extension.sourcemap.json | 50 +++++---- .../operation-produces-invalid-type.json | 50 +++++---- ...ation-produces-invalid-type.sourcemap.json | 50 +++++---- .../options/generateMessageBody-false.json | 50 +++++---- .../options/generateMessageBody-true.json | 50 +++++---- .../generateMessageBodySchema-false.json | 50 +++++---- .../generateMessageBodySchema-true.json | 50 +++++---- .../parameter-array-default-warning.json | 50 +++++---- ...meter-array-default-warning.sourcemap.json | 50 +++++---- .../parameters-header-type-warning.json | 50 +++++---- ...ameters-header-type-warning.sourcemap.json | 50 +++++---- .../test/fixtures/produces-invalid-type.json | 50 +++++---- .../produces-invalid-type.sourcemap.json | 50 +++++---- .../test/fixtures/request-body-primitive.json | 50 +++++---- .../request-body-primitive.sourcemap.json | 50 +++++---- .../schema-reference-nullable-enum.json | 50 +++++---- ...ema-reference-nullable-enum.sourcemap.json | 50 +++++---- .../schema-references-example-invalid.json | 50 +++++---- ...-references-example-invalid.sourcemap.json | 50 +++++---- .../openapi2-parser/test/fixtures/tags.json | 50 +++++---- .../test/fixtures/tags.sourcemap.json | 50 +++++---- .../test/fixtures/x-summary-type.json | 50 +++++---- .../fixtures/x-summary-type.sourcemap.json | 50 +++++---- 60 files changed, 1626 insertions(+), 1486 deletions(-) diff --git a/packages/openapi2-parser/test/fixtures/auth-extensions.json b/packages/openapi2-parser/test/fixtures/auth-extensions.json index 941f73023..ebb076800 100644 --- a/packages/openapi2-parser/test/fixtures/auth-extensions.json +++ b/packages/openapi2-parser/test/fixtures/auth-extensions.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Authentication with extensions" diff --git a/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json b/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json index dbfce8d5e..d9df68a14 100644 --- a/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/auth-extensions.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json index 3df07c083..3396e07d2 100644 --- a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json +++ b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Authentication with multiple consumes" diff --git a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json index 585b7f24f..be97e5d31 100644 --- a/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/auth-multi-consumes.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/circular-example.json b/packages/openapi2-parser/test/fixtures/circular-example.json index 51d77c374..b4cd344a6 100644 --- a/packages/openapi2-parser/test/fixtures/circular-example.json +++ b/packages/openapi2-parser/test/fixtures/circular-example.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Test circular reference in example" diff --git a/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json b/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json index 85d3d0c4e..8c9d2bb63 100644 --- a/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/circular-example.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json index 4d60f161f..d9a1a43f0 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Consumes JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json index e9b8078bf..0a8cdd16c 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/consumes-invalid-type.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json index f739145e4..901fb5b46 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json +++ b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Consumes Multipart Form Data with file" diff --git a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json index 4e41a8dd6..e0cae4159 100644 --- a/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/consumes-multipart-file.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json index 92f040434..be0267214 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Test API" diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json index b35c29adc..f5e49d073 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-nullable-member.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json index 6d1357327..6b6581e55 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json index ed639e737..004537a25 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation-ref.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation.json b/packages/openapi2-parser/test/fixtures/data-structure-generation.json index abf6a8355..41e09e1f9 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json b/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json index 2fdd19a85..9811198d4 100644 --- a/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/data-structure-generation.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/external-dereferencing.json b/packages/openapi2-parser/test/fixtures/external-dereferencing.json index f65dc8fa9..dbb340c87 100644 --- a/packages/openapi2-parser/test/fixtures/external-dereferencing.json +++ b/packages/openapi2-parser/test/fixtures/external-dereferencing.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Dereferencing a local file" diff --git a/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json b/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json index 6b13824b2..0c0998c87 100644 --- a/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/external-dereferencing.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/headers-type-warning.json b/packages/openapi2-parser/test/fixtures/headers-type-warning.json index 13030127d..ab3019532 100644 --- a/packages/openapi2-parser/test/fixtures/headers-type-warning.json +++ b/packages/openapi2-parser/test/fixtures/headers-type-warning.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Example Header Values" diff --git a/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json b/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json index 82dff1696..5a7914d73 100644 --- a/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/headers-type-warning.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-contact.json b/packages/openapi2-parser/test/fixtures/info-contact.json index 89bc8bbad..509d47db2 100644 --- a/packages/openapi2-parser/test/fixtures/info-contact.json +++ b/packages/openapi2-parser/test/fixtures/info-contact.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,28 +39,13 @@ } ] }, + "title": { + "element": "string", + "content": "Sample Store App" + }, "links": { "element": "array", "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - }, { "element": "link", "meta": { @@ -68,10 +79,6 @@ } } ] - }, - "title": { - "element": "string", - "content": "Sample Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json b/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json index 4d9231089..7ba5307fa 100644 --- a/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/info-contact.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,28 +39,38 @@ } ] }, + "title": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 23 + }, + { + "element": "number", + "content": 23 + } + ] + } + ] + } + ] + } + }, + "content": "Sample Store App" + }, "links": { "element": "array", "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - }, { "element": "link", "meta": { @@ -118,35 +154,6 @@ } } ] - }, - "title": { - "element": "string", - "attributes": { - "sourceMap": { - "element": "array", - "content": [ - { - "element": "sourceMap", - "content": [ - { - "element": "array", - "content": [ - { - "element": "number", - "content": 23 - }, - { - "element": "number", - "content": 23 - } - ] - } - ] - } - ] - } - }, - "content": "Sample Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-termsOfService.json b/packages/openapi2-parser/test/fixtures/info-termsOfService.json index e73bc1395..bcbaa9f93 100644 --- a/packages/openapi2-parser/test/fixtures/info-termsOfService.json +++ b/packages/openapi2-parser/test/fixtures/info-termsOfService.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,28 +39,13 @@ } ] }, + "title": { + "element": "string", + "content": "Sample Pet Store App" + }, "links": { "element": "array", "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - }, { "element": "link", "attributes": { @@ -49,10 +60,6 @@ } } ] - }, - "title": { - "element": "string", - "content": "Sample Pet Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json b/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json index 4c2c7eb77..c34423194 100644 --- a/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/info-termsOfService.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,28 +39,38 @@ } ] }, + "title": { + "element": "string", + "attributes": { + "sourceMap": { + "element": "array", + "content": [ + { + "element": "sourceMap", + "content": [ + { + "element": "array", + "content": [ + { + "element": "number", + "content": 23 + }, + { + "element": "number", + "content": 27 + } + ] + } + ] + } + ] + } + }, + "content": "Sample Pet Store App" + }, "links": { "element": "array", "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - }, { "element": "link", "attributes": { @@ -72,35 +108,6 @@ } } ] - }, - "title": { - "element": "string", - "attributes": { - "sourceMap": { - "element": "array", - "content": [ - { - "element": "sourceMap", - "content": [ - { - "element": "array", - "content": [ - { - "element": "number", - "content": 23 - }, - { - "element": "number", - "content": 27 - } - ] - } - ] - } - ] - } - }, - "content": "Sample Pet Store App" } }, "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/invalid-media-type.json b/packages/openapi2-parser/test/fixtures/invalid-media-type.json index 169193e0b..e1ad6013a 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-media-type.json +++ b/packages/openapi2-parser/test/fixtures/invalid-media-type.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Test bad media type" diff --git a/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json index a181fcd1b..f3bdb0fb7 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/invalid-media-type.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/invalid-reference.json b/packages/openapi2-parser/test/fixtures/invalid-reference.json index 3f9ce2aa1..355e543f0 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-reference.json +++ b/packages/openapi2-parser/test/fixtures/invalid-reference.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Test References" diff --git a/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json b/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json index b3ac5abb8..d9a8b2fff 100644 --- a/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/invalid-reference.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json index a3fd0c8de..feefdb23a 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "JSON Body Generation with Array of Object" diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json index 928dfbfa3..945aadf2f 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-array-object.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json index 8f89c805f..763e12c3d 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Produces JSON with pattern" diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json index 586d16e2a..591cd1b94 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation-bad-pattern.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation.json b/packages/openapi2-parser/test/fixtures/json-body-generation.json index ddc4b2658..6817a86af 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json b/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json index 243d2a572..55952b548 100644 --- a/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/json-body-generation.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json index d9b29a7eb..059ee6e45 100644 --- a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Consumes JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json index 7bdeccb9b..9b5bfac7b 100644 --- a/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/operation-consumes-invalid-type.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/operation-extension.json b/packages/openapi2-parser/test/fixtures/operation-extension.json index 7b9453753..84ff8cec1 100644 --- a/packages/openapi2-parser/test/fixtures/operation-extension.json +++ b/packages/openapi2-parser/test/fixtures/operation-extension.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Simple API overview" diff --git a/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json b/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json index 2047fd4d4..42ebb6a24 100644 --- a/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/operation-extension.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json index ae21129d8..81f808889 100644 --- a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Produces JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json index 7dcb0af9e..5acec17f6 100644 --- a/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/operation-produces-invalid-type.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json index 386fbb34d..911e9a7f4 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-false.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json index ddc4b2658..6817a86af 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBody-true.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json index 081487551..116c0882b 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-false.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json index ddc4b2658..6817a86af 100644 --- a/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json +++ b/packages/openapi2-parser/test/fixtures/options/generateMessageBodySchema-true.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Data Structure Generation" diff --git a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json index adb6e1bd6..189d2407c 100644 --- a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json +++ b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Parameters" diff --git a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json index c0e65b8b0..48dd3d554 100644 --- a/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/parameter-array-default-warning.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json index 340983a01..3bc8652ab 100644 --- a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json +++ b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Request Header Parameter Example" diff --git a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json index 5059632c7..4a312b2a1 100644 --- a/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/parameters-header-type-warning.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/produces-invalid-type.json b/packages/openapi2-parser/test/fixtures/produces-invalid-type.json index 239af290f..a9e36bcfe 100644 --- a/packages/openapi2-parser/test/fixtures/produces-invalid-type.json +++ b/packages/openapi2-parser/test/fixtures/produces-invalid-type.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Produces JSON with invalid content type" diff --git a/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json index 047d5baa3..67c461b3a 100644 --- a/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/produces-invalid-type.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/request-body-primitive.json b/packages/openapi2-parser/test/fixtures/request-body-primitive.json index 34cce893e..44ae0c31d 100644 --- a/packages/openapi2-parser/test/fixtures/request-body-primitive.json +++ b/packages/openapi2-parser/test/fixtures/request-body-primitive.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Primitive Body" diff --git a/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json b/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json index 5ad80bd53..6d7e9cf25 100644 --- a/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/request-body-primitive.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json index 481156a65..fd3829922 100644 --- a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json +++ b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "nullable enum" diff --git a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json index 03e4cb739..1740eaa5b 100644 --- a/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/schema-reference-nullable-enum.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json index 45805dd90..2de7e699b 100644 --- a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json +++ b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "My API" diff --git a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json index 849ca072c..d97159211 100644 --- a/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/schema-references-example-invalid.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/tags.json b/packages/openapi2-parser/test/fixtures/tags.json index 5502f648c..8ca02d097 100644 --- a/packages/openapi2-parser/test/fixtures/tags.json +++ b/packages/openapi2-parser/test/fixtures/tags.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Tags on some of the operations" diff --git a/packages/openapi2-parser/test/fixtures/tags.sourcemap.json b/packages/openapi2-parser/test/fixtures/tags.sourcemap.json index 5741e9d3e..86a40a5d3 100644 --- a/packages/openapi2-parser/test/fixtures/tags.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/tags.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { diff --git a/packages/openapi2-parser/test/fixtures/x-summary-type.json b/packages/openapi2-parser/test/fixtures/x-summary-type.json index e6e0e2efc..9c700d1ac 100644 --- a/packages/openapi2-parser/test/fixtures/x-summary-type.json +++ b/packages/openapi2-parser/test/fixtures/x-summary-type.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "content": "Resource summary as incorrect type coerces to string" diff --git a/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json b/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json index 33cb016f4..c3bd76471 100644 --- a/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json +++ b/packages/openapi2-parser/test/fixtures/x-summary-type.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", @@ -13,30 +39,6 @@ } ] }, - "links": { - "element": "array", - "content": [ - { - "element": "link", - "meta": { - "title": { - "element": "string", - "content": "OpenAPI 2" - } - }, - "attributes": { - "relation": { - "element": "string", - "content": "via" - }, - "href": { - "element": "string", - "content": "https://spec.openapis.org/oas/v2.0" - } - } - } - ] - }, "title": { "element": "string", "attributes": { From 6664f14a0f1e50c86779c2059906116c61bccc7e Mon Sep 17 00:00:00 2001 From: Marco Friso Date: Mon, 10 Aug 2020 11:10:36 +0200 Subject: [PATCH 5/5] chore(oas2): add format link to `swagger-zoo` fixtures --- .../features/api-elements/action.json | 26 +++++++++++++++++++ .../api-elements/action.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/auth-basic.json | 26 +++++++++++++++++++ .../api-elements/auth-basic.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-does-not-exist.json | 26 +++++++++++++++++++ .../auth-does-not-exist.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/auth-double.json | 26 +++++++++++++++++++ .../api-elements/auth-double.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-empty-security.json | 26 +++++++++++++++++++ .../auth-empty-security.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/auth-global.json | 26 +++++++++++++++++++ .../api-elements/auth-global.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-oauth2-access-code.json | 26 +++++++++++++++++++ .../auth-oauth2-access-code.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-oauth2-application.json | 26 +++++++++++++++++++ .../auth-oauth2-application.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-oauth2-implicit.json | 26 +++++++++++++++++++ .../auth-oauth2-implicit.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-oauth2-password.json | 26 +++++++++++++++++++ .../auth-oauth2-password.sourcemap.json | 26 +++++++++++++++++++ .../auth-oauth2-scope-does-not-exist.json | 26 +++++++++++++++++++ ...oauth2-scope-does-not-exist.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-token-in-header.json | 26 +++++++++++++++++++ .../auth-token-in-header.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-token-in-query.json | 26 +++++++++++++++++++ .../auth-token-in-query.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/auth-with-x-summary.json | 26 +++++++++++++++++++ .../auth-with-x-summary.sourcemap.json | 26 +++++++++++++++++++ .../basepath-with-extra-slash.json | 26 +++++++++++++++++++ .../basepath-with-extra-slash.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/body-binary.json | 26 +++++++++++++++++++ .../api-elements/body-binary.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/body-schema-example.json | 26 +++++++++++++++++++ .../body-schema-example.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/collection-format.json | 26 +++++++++++++++++++ .../collection-format.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/consumes-json-subtype.json | 26 +++++++++++++++++++ .../consumes-json-subtype.sourcemap.json | 26 +++++++++++++++++++ ...consumes-multipart-form-with-boundary.json | 26 +++++++++++++++++++ ...ultipart-form-with-boundary.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/consumes-multipart-form.json | 26 +++++++++++++++++++ .../consumes-multipart-form.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/data-structures.json | 26 +++++++++++++++++++ .../data-structures.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/default-response.json | 26 +++++++++++++++++++ .../default-response.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/description.json | 26 +++++++++++++++++++ .../api-elements/description.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/example-header.json | 26 +++++++++++++++++++ .../example-header.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/extensions.json | 26 +++++++++++++++++++ .../api-elements/extensions.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/external-docs.json | 26 +++++++++++++++++++ .../api-elements/external-docs.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/form-data-file.json | 26 +++++++++++++++++++ .../form-data-file.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/form-data.json | 26 +++++++++++++++++++ .../api-elements/form-data.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/hostname.json | 26 +++++++++++++++++++ .../api-elements/hostname.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/minimal-json.json | 26 +++++++++++++++++++ .../api-elements/minimal-json.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/minimal-yaml.json | 26 +++++++++++++++++++ .../api-elements/minimal-yaml.sourcemap.json | 26 +++++++++++++++++++ .../multiple-produces-consumes.json | 26 +++++++++++++++++++ .../multiple-produces-consumes.sourcemap.json | 26 +++++++++++++++++++ .../operation-consumes-json-subtype.json | 26 +++++++++++++++++++ ...ation-consumes-json-subtype.sourcemap.json | 26 +++++++++++++++++++ .../operation-produces-json-subtype.json | 26 +++++++++++++++++++ ...ation-produces-json-subtype.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/param-with-enum-default.json | 26 +++++++++++++++++++ .../param-with-enum-default.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/params.json | 26 +++++++++++++++++++ .../api-elements/params.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/path-level-params.json | 26 +++++++++++++++++++ .../path-level-params.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/payload-as-string.json | 26 +++++++++++++++++++ .../payload-as-string.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/produces-binary.json | 26 +++++++++++++++++++ .../produces-binary.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/produces-file.json | 26 +++++++++++++++++++ .../api-elements/produces-file.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/produces-header.json | 26 +++++++++++++++++++ .../produces-header.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/produces-json-subtype.json | 26 +++++++++++++++++++ .../produces-json-subtype.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/recursion.json | 26 +++++++++++++++++++ .../api-elements/recursion.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/request-headers.json | 26 +++++++++++++++++++ .../request-headers.sourcemap.json | 26 +++++++++++++++++++ .../response-example-with-produces.json | 26 +++++++++++++++++++ ...ponse-example-with-produces.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/schema-multi-reference.json | 26 +++++++++++++++++++ .../schema-multi-reference.sourcemap.json | 26 +++++++++++++++++++ .../api-elements/schema-reference.json | 26 +++++++++++++++++++ .../schema-reference.sourcemap.json | 26 +++++++++++++++++++ .../fixtures/features/api-elements/tags.json | 26 +++++++++++++++++++ .../features/api-elements/tags.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/warnings.json | 26 +++++++++++++++++++ .../api-elements/warnings.sourcemap.json | 26 +++++++++++++++++++ .../x-example-and-request-body.json | 26 +++++++++++++++++++ .../x-example-and-request-body.sourcemap.json | 26 +++++++++++++++++++ .../features/api-elements/x-example.json | 26 +++++++++++++++++++ .../api-elements/x-example.sourcemap.json | 26 +++++++++++++++++++ .../x-summary-and-description.json | 26 +++++++++++++++++++ .../x-summary-and-description.sourcemap.json | 26 +++++++++++++++++++ 106 files changed, 2756 insertions(+) diff --git a/packages/swagger-zoo/fixtures/features/api-elements/action.json b/packages/swagger-zoo/fixtures/features/api-elements/action.json index 346122c22..b418fca19 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/action.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/action.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/action.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/action.sourcemap.json index 4592a2c59..586b6dc50 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/action.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/action.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.json index bfb25148e..de26b09a3 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.sourcemap.json index 25a639b5c..e0915a5cb 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-basic.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.json index b09b9d6d4..961b191ac 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.sourcemap.json index 7f5c1183d..a700e30da 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-does-not-exist.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-double.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-double.json index 9364669ae..4323b05f8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-double.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-double.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-double.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-double.sourcemap.json index 641da32f8..8c256d072 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-double.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-double.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.json index 227dd53f4..7f81243f8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.sourcemap.json index 44f0a03e4..d82d4eddb 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-empty-security.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-global.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-global.json index 614bd6a1c..0ec3d64b8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-global.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-global.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-global.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-global.sourcemap.json index 81b318e47..2af852238 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-global.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-global.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.json index 99fd8a458..08ad5aa63 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.sourcemap.json index 3d6323037..34c57fdb8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-access-code.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.json index 42bb42395..be1b49897 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.sourcemap.json index 62de618ba..d34ca61ba 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-application.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.json index a7eb16fae..fa183948e 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.sourcemap.json index 7c242e723..d6cbadb1d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-implicit.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.json index d59af4bc0..8ab930c8f 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.sourcemap.json index ce9d677b0..53cf4b318 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-password.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.json index 643c0589c..c7a2d5dbf 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.sourcemap.json index 6e3717d45..db25a8bef 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-oauth2-scope-does-not-exist.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.json index 0ac203c5b..bcb3eda46 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.sourcemap.json index 8c4930f51..ff3380eec 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-header.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.json index f6b9543b4..33b969ab5 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.sourcemap.json index a678e0efb..232961ae5 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-token-in-query.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.json index d74128ed0..328f7d229 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.sourcemap.json index eb819395c..158e4901d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/auth-with-x-summary.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.json b/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.json index 2aa824604..800cb86bd 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.sourcemap.json index 2dedf926f..c2064317c 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/basepath-with-extra-slash.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/body-binary.json b/packages/swagger-zoo/fixtures/features/api-elements/body-binary.json index bc799c928..eae93eee5 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/body-binary.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/body-binary.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/body-binary.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/body-binary.sourcemap.json index a5e1f6128..e61067a0e 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/body-binary.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/body-binary.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.json b/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.json index 2559b2372..ae7da1c97 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.sourcemap.json index be717339e..087addc20 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/body-schema-example.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/collection-format.json b/packages/swagger-zoo/fixtures/features/api-elements/collection-format.json index d6bba2fd4..be480c829 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/collection-format.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/collection-format.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/collection-format.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/collection-format.sourcemap.json index 98dee6f55..0ff1ea748 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/collection-format.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/collection-format.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.json b/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.json index f59ce3202..1dd984606 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.sourcemap.json index 88a5458a6..e5d8e1453 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/consumes-json-subtype.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.json b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.json index ef9fd68f3..5d51887ae 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.sourcemap.json index 9d578cc7f..d83ae217d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form-with-boundary.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.json b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.json index d734b8d33..e76f618b1 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.sourcemap.json index 3de434f1e..4da14b728 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/consumes-multipart-form.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/data-structures.json b/packages/swagger-zoo/fixtures/features/api-elements/data-structures.json index ee0bbae79..1a5c7eb07 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/data-structures.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/data-structures.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/data-structures.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/data-structures.sourcemap.json index f87a6cfc4..18323c5c6 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/data-structures.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/data-structures.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/default-response.json b/packages/swagger-zoo/fixtures/features/api-elements/default-response.json index 3fe97ab94..12283965c 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/default-response.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/default-response.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/default-response.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/default-response.sourcemap.json index e6d3967dd..9c772ee92 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/default-response.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/default-response.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/description.json b/packages/swagger-zoo/fixtures/features/api-elements/description.json index 7a1cc2e64..f9f24c622 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/description.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/description.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/description.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/description.sourcemap.json index ecc035cb9..682c4faed 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/description.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/description.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/example-header.json b/packages/swagger-zoo/fixtures/features/api-elements/example-header.json index 83b36cad6..4954a9733 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/example-header.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/example-header.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/example-header.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/example-header.sourcemap.json index 977243370..5fb76c5dd 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/example-header.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/example-header.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/extensions.json b/packages/swagger-zoo/fixtures/features/api-elements/extensions.json index 52b26f915..0929d240f 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/extensions.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/extensions.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/extensions.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/extensions.sourcemap.json index 273f71f56..de3328df8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/extensions.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/extensions.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/external-docs.json b/packages/swagger-zoo/fixtures/features/api-elements/external-docs.json index 4ba1dadcc..04a52b110 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/external-docs.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/external-docs.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/external-docs.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/external-docs.sourcemap.json index 6909775e9..d75b4f675 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/external-docs.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/external-docs.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.json b/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.json index a5702fe30..a6c6eb551 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.sourcemap.json index edf561bc9..2ffb47b8f 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/form-data-file.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/form-data.json b/packages/swagger-zoo/fixtures/features/api-elements/form-data.json index c522684d7..6fa62aa88 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/form-data.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/form-data.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/form-data.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/form-data.sourcemap.json index 7c3fcdd57..2241e4dd3 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/form-data.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/form-data.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/hostname.json b/packages/swagger-zoo/fixtures/features/api-elements/hostname.json index c96df3182..7bda183e3 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/hostname.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/hostname.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/hostname.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/hostname.sourcemap.json index 5220cb4ff..84a0acb38 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/hostname.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/hostname.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.json b/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.json index 826cd8f37..efe7658c8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.sourcemap.json index 32c53baa2..7a4494440 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/minimal-json.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.json b/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.json index 826cd8f37..efe7658c8 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.sourcemap.json index 60ef5f3f6..095673c5e 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/minimal-yaml.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.json b/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.json index 2d123c3f3..184879c1d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.sourcemap.json index 4c825c844..ab04f6918 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/multiple-produces-consumes.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.json b/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.json index f59ce3202..1dd984606 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.sourcemap.json index 1dadf4a78..0d5c4ff00 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/operation-consumes-json-subtype.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.json b/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.json index cbb54ab11..1ab59df8d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.sourcemap.json index d40acb4bc..cf99e4e97 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/operation-produces-json-subtype.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.json b/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.json index a41fd3d75..8897572c9 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.sourcemap.json index d35e210b9..8de3fd589 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/param-with-enum-default.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/params.json b/packages/swagger-zoo/fixtures/features/api-elements/params.json index abce85a60..c54a4fa06 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/params.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/params.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/params.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/params.sourcemap.json index 326f01480..0cf4d9f4a 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/params.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/params.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.json b/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.json index 0e51a60f9..c61697e1f 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.sourcemap.json index 1af57379b..1ccccbbd0 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/path-level-params.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.json b/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.json index b942f7a1f..e3b077f52 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.sourcemap.json index f9e2c90c4..7b98a1e41 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/payload-as-string.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.json index ccbfc653c..7204f7c7b 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.sourcemap.json index 9b514f1b5..302010bd6 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-binary.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-file.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-file.json index 325f56893..448bb1ce6 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-file.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-file.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-file.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-file.sourcemap.json index 2bd1b04fe..d001de431 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-file.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-file.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-header.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-header.json index fd4cf6228..b8ea5713d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-header.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-header.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-header.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-header.sourcemap.json index 91563b384..39e642487 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-header.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-header.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.json index cbb54ab11..1ab59df8d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.sourcemap.json index 8afeb4c4d..17179221b 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/produces-json-subtype.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/recursion.json b/packages/swagger-zoo/fixtures/features/api-elements/recursion.json index 88307b2f2..c46706f25 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/recursion.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/recursion.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/recursion.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/recursion.sourcemap.json index f3d67d531..aa110a91d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/recursion.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/recursion.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/request-headers.json b/packages/swagger-zoo/fixtures/features/api-elements/request-headers.json index 62690cf2a..65909ddbe 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/request-headers.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/request-headers.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/request-headers.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/request-headers.sourcemap.json index 9aa1e0a1a..af9bdc89d 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/request-headers.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/request-headers.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.json b/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.json index bcfd0f2c8..b9540f466 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.sourcemap.json index 8e163fb90..172f0f05c 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/response-example-with-produces.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.json b/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.json index 43574f46e..93d2079fc 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.sourcemap.json index ae1ac64d7..3fa221f1a 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/schema-multi-reference.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.json b/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.json index 5174cb146..efaf975af 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.sourcemap.json index 721c4446d..3b080a16b 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/schema-reference.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/tags.json b/packages/swagger-zoo/fixtures/features/api-elements/tags.json index d3450d2b1..424576c94 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/tags.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/tags.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/tags.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/tags.sourcemap.json index f145c7787..b21c593fd 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/tags.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/tags.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/warnings.json b/packages/swagger-zoo/fixtures/features/api-elements/warnings.json index 6bb453aa8..aac070a43 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/warnings.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/warnings.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/warnings.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/warnings.sourcemap.json index e6c1287b8..1a737520b 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/warnings.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/warnings.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.json b/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.json index eacf3be4c..ff18eae07 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.sourcemap.json index 5191d9993..536214119 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/x-example-and-request-body.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/x-example.json b/packages/swagger-zoo/fixtures/features/api-elements/x-example.json index 2821daae6..e3f38752f 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/x-example.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/x-example.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/x-example.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/x-example.sourcemap.json index 50e5f736f..ea5b47674 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/x-example.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/x-example.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.json b/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.json index 66b7e6251..515d094f5 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category", diff --git a/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.sourcemap.json b/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.sourcemap.json index 05b797e56..89e570327 100644 --- a/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.sourcemap.json +++ b/packages/swagger-zoo/fixtures/features/api-elements/x-summary-and-description.sourcemap.json @@ -1,5 +1,31 @@ { "element": "parseResult", + "meta": { + "links": { + "element": "array", + "content": [ + { + "element": "link", + "meta": { + "title": { + "element": "string", + "content": "OpenAPI 2" + } + }, + "attributes": { + "relation": { + "element": "string", + "content": "via" + }, + "href": { + "element": "string", + "content": "https://spec.openapis.org/oas/v2.0" + } + } + } + ] + } + }, "content": [ { "element": "category",