-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement support for merge-keys (#20)
BREAKING CHANGE: data is no longer an empty object literal by default BREAKING CHANGE: scripts were updated to 7.x * feat: loose support for merge-keys * feat: json option * feat: handle merge keys properly * test: add extra test covering duplicate merge keys * feat: addressing PR comments * chore: improve typings * fix: use correct import path * chore: lint and test scripts * build: remove docs scripts
- Loading branch information
Showing
17 changed files
with
489 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -514,5 +514,6 @@ paragraph breaks | |
442, | ||
443, | ||
], | ||
"metadata": undefined, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# https://github.com/nodeca/js-yaml/blob/master/test/samples-common/duplicate-merge-key.yml | ||
--- | ||
<<: {x: 1, y: 2} | ||
foo: bar | ||
<<: {z: 3, t: 4} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
openapi: '3.0.0' | ||
info: | ||
description: foo | ||
version: 1.0.0 | ||
title: Swagger Petstore | ||
license: | ||
name: MIT | ||
contact: | ||
url: https://example.com | ||
servers: | ||
- url: http://petstore.swagger.io/v1 | ||
paths: | ||
/pets: | ||
get: | ||
description: get | ||
summary: List all pets | ||
operationId: listPets | ||
tags: | ||
- pets | ||
responses: | ||
'200': | ||
description: A paged array of pets | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Pets' | ||
default: &default | ||
description: unexpected error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Error' | ||
post: | ||
description: get | ||
summary: Create a pet | ||
operationId: createPets | ||
tags: | ||
- pets | ||
responses: | ||
'201': | ||
description: Null response | ||
default: | ||
<<: [*default] | ||
components: | ||
schemas: | ||
Pet: | ||
description: foo | ||
type: string | ||
Pets: | ||
description: get | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/Pet' | ||
Error: | ||
description: doo | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.