Explorar o código

Add date_format example value #97

Marcel Pociot %!s(int64=8) %!d(string=hai) anos
pai
achega
49635dda59
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

+ 1 - 0
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

@@ -249,6 +249,7 @@ abstract class AbstractGenerator
             case 'date_format':
                 $attributeData['type'] = 'date';
                 $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();
+                $attributeData['value'] = date($parameters[0]);
                 break;
             case 'different':
                 $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();