Skip to content

Commit 56f72a2

Browse files
committed
fix: update fixtures to expect required for NotNull property
The notNullFriend property with #[Assert\NotNull] correctly marks the field as required in the generated schema. Update the JSON fixture and test assertion to match.
1 parent 3ebd05a commit 56f72a2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/Functional/Fixtures/JmsOptOutController.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"VirtualTypeClassDoesNotExistsHandlerDefined": {},
6262
"VirtualTypeClassDoesNotExistsHandlerNotDefined": {},
6363
"JMSUser": {
64+
"required": [
65+
"not_null_friend"
66+
],
6467
"properties": {
6568
"id": {
6669
"title": "userid",

tests/Functional/JMSFunctionalTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ public function testModelDocumentation(): void
218218
'type' => 'integer',
219219
],
220220
],
221+
'required' => ['not_null_friend'],
221222
'schema' => 'JMSUser',
222223
], json_decode($this->getModel('JMSUser')->toJson(), true));
223224

0 commit comments

Comments
 (0)