File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66use App \Exceptions \InvalidArgumentException ;
77use App \Helpers \MetaFormats \Validators \BaseValidator ;
88use App \Helpers \MetaFormats \Validators \VArray ;
9- use App \Helpers \MetaFormats \Validators \VFormat ;
9+ use App \Helpers \MetaFormats \Validators \VObject ;
1010use App \Helpers \Swagger \AnnotationParameterData ;
1111use Exception ;
1212
@@ -87,9 +87,9 @@ public function conformsToDefinition(mixed $value)
8787 */
8888 public function getFormatName (): ?string
8989 {
90- // all format params have to have a VFormat validator
90+ // all format params have to have a VObject validator
9191 foreach ($ this ->validators as $ validator ) {
92- if ($ validator instanceof VFormat ) {
92+ if ($ validator instanceof VObject ) {
9393 return $ validator ->format ;
9494 }
9595 }
Original file line number Diff line number Diff line change 1010 * Validates formats. Accepts any format derived of the base MetaFormat.
1111 * Format fields are validated by validators added to the fields.
1212 */
13- class VFormat extends BaseValidator
13+ class VObject extends BaseValidator
1414{
1515 public const SWAGGER_TYPE = "object " ;
1616 public string $ format ;
You can’t perform that action at this time.
0 commit comments