-
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.
fix: do not report duplicate keys errors for keys added by merge keys (…
…#25) * fix: do not report duplicate keys errors for keys added by merge keys * test: extra override scenario
- Loading branch information
Showing
3 changed files
with
126 additions
and
9 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/__tests__/fixtures/merge-keys-with-duplicate-props.yaml
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,36 @@ | ||
openapi: 3.0.0 | ||
|
||
x-format-version: "1.0" | ||
|
||
info: | ||
title: Merge key issue | ||
description: https://yaml.org/type/merge.html | ||
version: 1.0.0 | ||
|
||
x-center: &CENTER | ||
x: 1 | ||
y: 2 | ||
|
||
x-left: &LEFT | ||
x: 0 | ||
y: 2 | ||
|
||
x-big: &BIG | ||
r: 10 | ||
|
||
x-small: &SMALL | ||
r: 1 | ||
|
||
x-one: | ||
<<: *CENTER | ||
r: 10 | ||
label: center/big | ||
x-two: | ||
<<: [*CENTER, *BIG] | ||
label: center/big | ||
x-three: | ||
<<: [*BIG, *LEFT, *SMALL] | ||
x: 1 | ||
label: center/big | ||
|
||
paths: {} |
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