mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-01-17 05:08:16 +01:00
Invalid string validation (#704)
* Add test case for invalid string type validation * docs: add changelog entry --------- Co-authored-by: Danny van der Sluijs <danny.van.der.sluijs@infi.nl>
This commit is contained in:
parent
eac0893905
commit
f0b02264a3
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- Add return types in the test suite ([#748](https://github.com/jsonrainbow/json-schema/pull/748))
|
||||
- Add test case for validating array of strings with objects ([#704](https://github.com/jsonrainbow/json-schema/pull/704))
|
||||
|
||||
### Fixed
|
||||
- Correct misconfigured mocks in JsonSchema\Tests\Uri\UriRetrieverTest ([#741](https://github.com/jsonrainbow/json-schema/pull/741))
|
||||
|
@ -116,6 +116,19 @@ class ArraysTest extends BaseTestCase
|
||||
}
|
||||
}
|
||||
}'
|
||||
],
|
||||
[
|
||||
'{"data": [{"not_a_string_but_object":"string_but_in_object"}]}',
|
||||
'{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {"type":"string"},
|
||||
"additionalItems": false
|
||||
}
|
||||
}
|
||||
}'
|
||||
]
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user