-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor failing section of test_multi_file_support to reduce number …
…of files. Added support for sending in multiple schemas as a list into schema_data variable and merge them into one. Simulates merging multiple data sources into one schema.
- Loading branch information
Showing
3 changed files
with
66 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
data: | ||
point: | ||
x: 3 | ||
|
||
schema: | ||
type: map | ||
mapping: | ||
point: | ||
mapping: | ||
x: | ||
required: true | ||
include: coordinate_value | ||
y: | ||
required: true | ||
include: coordinate_value | ||
|
||
partial-files: | ||
- schema;coordinate_value: | ||
type: number | ||
|
||
fail-exception-class: "SchemaError" | ||
fail-validation-errors: | ||
- "Cannot find required key 'y'. Path: '/point'.: Path: '/'" |
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