Skip to content

Commit

Permalink
test mixed property
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Jan 8, 2025
1 parent dd54133 commit 227bf3b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"properties": {
"mixedAnnotation": {
"nullable": true
}
},
"type": "object"
}
20 changes: 20 additions & 0 deletions tests/Functional/ModelDescriber/Fixtures/TypeInfo/MixedTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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\TypeInfo;

class MixedTypes
{
/**
* @var mixed
*/
public $mixedAnnotation;
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@ public static function provideFixtures(): \Generator
yield [
Fixtures\TypeInfo\ArrayMixedKeys::class
];

yield [
Fixtures\TypeInfo\MixedTypes::class
];
}
}

0 comments on commit 227bf3b

Please sign in to comment.