File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
use App \Exceptions \InvalidArgumentException ;
7
7
use App \Helpers \MetaFormats \Validators \BaseValidator ;
8
8
use App \Helpers \MetaFormats \Validators \VArray ;
9
- use App \Helpers \MetaFormats \Validators \VFormat ;
9
+ use App \Helpers \MetaFormats \Validators \VObject ;
10
10
use App \Helpers \Swagger \AnnotationParameterData ;
11
11
use Exception ;
12
12
@@ -87,9 +87,9 @@ public function conformsToDefinition(mixed $value)
87
87
*/
88
88
public function getFormatName (): ?string
89
89
{
90
- // all format params have to have a VFormat validator
90
+ // all format params have to have a VObject validator
91
91
foreach ($ this ->validators as $ validator ) {
92
- if ($ validator instanceof VFormat ) {
92
+ if ($ validator instanceof VObject ) {
93
93
return $ validator ->format ;
94
94
}
95
95
}
Original file line number Diff line number Diff line change 10
10
* Validates formats. Accepts any format derived of the base MetaFormat.
11
11
* Format fields are validated by validators added to the fields.
12
12
*/
13
- class VFormat extends BaseValidator
13
+ class VObject extends BaseValidator
14
14
{
15
15
public const SWAGGER_TYPE = "object " ;
16
16
public string $ format ;
You can’t perform that action at this time.
0 commit comments