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:
Witold Wasiczko 2024-09-20 13:40:40 +02:00 committed by GitHub
parent eac0893905
commit f0b02264a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -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))

View File

@ -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
}
}
}'
]
];
}