mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Optionnal quote because the frontend does not use it
This commit is contained in:
parent
8197f08266
commit
86c1751186
3 changed files with 3 additions and 4 deletions
|
@ -60,7 +60,6 @@ class Annotation
|
|||
/**
|
||||
* @var string
|
||||
*
|
||||
* @Assert\NotNull()
|
||||
* @Assert\Length(
|
||||
* max = 10000,
|
||||
* maxMessage = "validator.quote_length_too_high"
|
||||
|
|
|
@ -17,7 +17,7 @@ class NewAnnotationType extends AbstractType
|
|||
'empty_data' => '',
|
||||
])
|
||||
->add('quote', null, [
|
||||
'empty_data' => null,
|
||||
'empty_data' => '',
|
||||
'trim' => false,
|
||||
])
|
||||
->add('ranges', CollectionType::class, [
|
||||
|
|
|
@ -37,8 +37,8 @@ class AnnotationRestController extends WallabagRestController
|
|||
* @ApiDoc(
|
||||
* requirements={
|
||||
* {"name"="ranges", "dataType"="array", "requirement"="\w+", "description"="The range array for the annotation"},
|
||||
* {"name"="quote", "dataType"="string", "required"=true, "description"="Quote for the annotation"},
|
||||
* {"name"="text", "dataType"="string", "required"=true, "description"=""},
|
||||
* {"name"="quote", "dataType"="string", "description"="The annotated text"},
|
||||
* {"name"="text", "dataType"="string", "required"=true, "description"="Content of annotation"},
|
||||
* }
|
||||
* )
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue