forked from mapbox/mapbox-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase strictness of style API validation. (mapbox#10779)
* Increase strictness of style API validation.
- Loading branch information
1 parent
e6dceaf
commit 1634e52
Showing
10 changed files
with
139 additions
and
49 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
8 changes: 4 additions & 4 deletions
8
test/unit/style-spec/fixture/bad-dasharray.output-api-supported.json
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[ | ||
{ | ||
"line": 16, | ||
"message": "layers[0].paint.line-dasharray[1]: -2 is less than the minimum value 0" | ||
"message": "layers[0].paint.line-dasharray[1]: -2 is less than the minimum value 0", | ||
"line": 16 | ||
}, | ||
{ | ||
"line": 16, | ||
"message": "layers[0].paint.line-dasharray[2]: -1 is less than the minimum value 0" | ||
"message": "layers[0].paint.line-dasharray[2]: -1 is less than the minimum value 0", | ||
"line": 16 | ||
} | ||
] |
16 changes: 8 additions & 8 deletions
16
test/unit/style-spec/fixture/bad-sky.output-api-supported.json
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
[ | ||
{ | ||
"line": 23, | ||
"message": "layers[1].paint.sky-atmosphere-sun[0]: -1 is less than the minimum value 0" | ||
"message": "layers[1].paint.sky-atmosphere-sun[0]: -1 is less than the minimum value 0", | ||
"line": 23 | ||
}, | ||
{ | ||
"line": 23, | ||
"message": "layers[1].paint.sky-atmosphere-sun[1]: 181 is greater than the maximum value 180" | ||
"message": "layers[1].paint.sky-atmosphere-sun[1]: 181 is greater than the maximum value 180", | ||
"line": 23 | ||
}, | ||
{ | ||
"line": 39, | ||
"message": "layers[3].paint.sky-gradient-center[0]: 361 is greater than the maximum value 360" | ||
"message": "layers[3].paint.sky-gradient-center[0]: 361 is greater than the maximum value 360", | ||
"line": 39 | ||
}, | ||
{ | ||
"line": 39, | ||
"message": "layers[3].paint.sky-gradient-center[1]: -1 is less than the minimum value 0" | ||
"message": "layers[3].paint.sky-gradient-center[1]: -1 is less than the minimum value 0", | ||
"line": 39 | ||
} | ||
] |
14 changes: 7 additions & 7 deletions
14
test/unit/style-spec/fixture/fog-invalid-input.output-api-supported.json
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[ | ||
{ | ||
"line": 11, | ||
"message": "range[0]: -100 is less than the minimum value -20" | ||
"message": "range[0]: -100 is less than the minimum value -20", | ||
"line": 11 | ||
}, | ||
{ | ||
"line": 11, | ||
"message": "range[1]: -80 is less than the minimum value -20" | ||
"message": "range[1]: -80 is less than the minimum value -20", | ||
"line": 11 | ||
}, | ||
{ | ||
"line": 12, | ||
"message": "horizon-blend: -4 is less than the minimum value 0" | ||
"message": "horizon-blend: -4 is less than the minimum value 0", | ||
"line": 12 | ||
} | ||
] | ||
] |
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
55 changes: 31 additions & 24 deletions
55
test/unit/style-spec/fixture/numbers.output-api-supported.json
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 |
---|---|---|
@@ -1,25 +1,32 @@ | ||
[ | ||
{ | ||
"line": 42, | ||
"message": "layers[2].paint.circle-radius: -1 is less than the minimum value 0" | ||
}, | ||
{ | ||
"message": "layers[3].paint.circle-radius: number expected, null found" | ||
}, | ||
{ | ||
"line": 58, | ||
"message": "layers[4].paint.circle-radius: missing required property \"stops\"" | ||
}, | ||
{ | ||
"line": 66, | ||
"message": "layers[5].paint.circle-radius: number expected, array found" | ||
}, | ||
{ | ||
"line": 74, | ||
"message": "layers[6].paint.circle-radius: number expected, boolean found" | ||
}, | ||
{ | ||
"line": 6, | ||
"message": "source.data: Unsupported property \"data\"" | ||
} | ||
] | ||
{ | ||
"message": "layers[2].paint.circle-radius: -1 is less than the minimum value 0", | ||
"line": 42 | ||
}, | ||
{ | ||
"message": "layers[3].paint.circle-radius: number expected, null found" | ||
}, | ||
{ | ||
"message": "layers[4].paint.circle-radius: missing required property \"stops\"", | ||
"line": 58 | ||
}, | ||
{ | ||
"message": "layers[5].paint.circle-radius: number expected, array found", | ||
"line": 66 | ||
}, | ||
{ | ||
"message": "layers[6].paint.circle-radius: number expected, boolean found", | ||
"line": 74 | ||
}, | ||
{ | ||
"message": "source.data: Unsupported property \"data\"", | ||
"line": 6 | ||
}, | ||
{ | ||
"message": "sources[0].type: Expected one of [vector, raster, raster-dem]", | ||
"line": 5 | ||
}, | ||
{ | ||
"message": "sources[0].url: Expected a valid Mapbox tileset url" | ||
} | ||
] |
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