File tree 2 files changed +14
-0
lines changed 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
8
8
## [ Unreleased]
9
9
### Added
10
10
- 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 ) )
11
12
12
13
### Fixed
13
14
- 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
116
116
}
117
117
}
118
118
} '
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
+ } '
119
132
]
120
133
];
121
134
}
You can’t perform that action at this time.
0 commit comments