File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88## [ Unreleased]
99### Added
1010- Add return types in the test suite ([ #748 ] ( https://github.com/jsonrainbow/json-schema/pull/748 ) )
11+ - Add test case for validating array of strings with objects ([ #704 ] ( https://github.com/jsonrainbow/json-schema/pull/704 ) )
1112
1213### Fixed
1314- Correct misconfigured mocks in JsonSchema\Tests\Uri\UriRetrieverTest ([ #741 ] ( https://github.com/jsonrainbow/json-schema/pull/741 ) )
Original file line number Diff line number Diff line change @@ -116,6 +116,19 @@ public function getInvalidTests(): array
116116 }
117117 }
118118 } '
119+ ],
120+ [
121+ '{"data": [{"not_a_string_but_object":"string_but_in_object"}]} ' ,
122+ '{
123+ "type": "object",
124+ "properties": {
125+ "data": {
126+ "type": "array",
127+ "items": {"type":"string"},
128+ "additionalItems": false
129+ }
130+ }
131+ } '
119132 ]
120133 ];
121134 }
You can’t perform that action at this time.
0 commit comments