Kaynağa Gözat

Add date_format example value #97

Marcel Pociot 8 yıl önce
ebeveyn
işleme
49635dda59

+ 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();