-
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix non-existing uuid 7 & 8 in Symfony 5.4
- Loading branch information
1 parent
5589601
commit 3851753
Showing
5 changed files
with
102 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
tests/Functional/ModelDescriber/Fixtures/UuidClass7And8.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"required": [ | ||
"uuid", | ||
"ulid", | ||
"uuidV1", | ||
"uuidV3", | ||
"uuidV4", | ||
"uuidV5", | ||
"uuidV6", | ||
"uuidV7", | ||
"uuidV8" | ||
], | ||
"properties": { | ||
"uuid": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"ulid": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV1": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV3": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV4": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV5": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV6": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV7": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"uuidV8": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"nullableUuid": { | ||
"type": "string", | ||
"format": "uuid", | ||
"nullable": true | ||
} | ||
}, | ||
"type": "object" | ||
} |
37 changes: 37 additions & 0 deletions
37
tests/Functional/ModelDescriber/Fixtures/UuidClass7And8.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NelmioApiDocBundle package. | ||
* | ||
* (c) Nelmio | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\ApiDocBundle\Tests\Functional\ModelDescriber\Fixtures; | ||
|
||
use Symfony\Component\Uid\Ulid; | ||
use Symfony\Component\Uid\Uuid; | ||
use Symfony\Component\Uid\UuidV1; | ||
use Symfony\Component\Uid\UuidV3; | ||
use Symfony\Component\Uid\UuidV4; | ||
use Symfony\Component\Uid\UuidV5; | ||
use Symfony\Component\Uid\UuidV6; | ||
use Symfony\Component\Uid\UuidV7; | ||
use Symfony\Component\Uid\UuidV8; | ||
|
||
class UuidClass7And8 | ||
{ | ||
public Uuid $uuid; | ||
public Ulid $ulid; | ||
public UuidV1 $uuidV1; | ||
public UuidV3 $uuidV3; | ||
public UuidV4 $uuidV4; | ||
public UuidV5 $uuidV5; | ||
public UuidV6 $uuidV6; | ||
public UuidV7 $uuidV7; | ||
public UuidV8 $uuidV8; | ||
|
||
public ?Uuid $nullableUuid; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters