Browse Source

Update README

Guillermo Espinoza 8 years ago
parent
commit
f987f0f31f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -69,7 +69,7 @@ $ bin/console doctrine:schema:update --force
 ## Validators
 
 
-- ExtraDataBundle\Validator\JSONValidator: Assert Callback que valida que un campo tenga formato json valido
+- **ExtraDataBundle\Validator\JSONValidator**: Assert Callback que valida que un campo tenga formato JSON válido. Para agregarlo:
 
 ```php
 
@@ -77,7 +77,7 @@ use Symfony\Component\Validator\Constraints as Assert;
 
 ...
 
-/**
+    /**
      * @var string $extraData
      *
      * @ORM\Column(type="text", nullable=true)
@@ -90,5 +90,5 @@ use Symfony\Component\Validator\Constraints as Assert;
     private $extraData;
 
 ```
-
+La option payload={"field"="extraData"}, es requerida, es el nombre del campo en el cual se quiere agregar el mensaje de error de validación.