mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-17 03:05:19 +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
|
* @var string
|
||||||
*
|
*
|
||||||
* @Assert\NotNull()
|
|
||||||
* @Assert\Length(
|
* @Assert\Length(
|
||||||
* max = 10000,
|
* max = 10000,
|
||||||
* maxMessage = "validator.quote_length_too_high"
|
* maxMessage = "validator.quote_length_too_high"
|
||||||
|
|
|
@ -17,7 +17,7 @@ class NewAnnotationType extends AbstractType
|
||||||
'empty_data' => '',
|
'empty_data' => '',
|
||||||
])
|
])
|
||||||
->add('quote', null, [
|
->add('quote', null, [
|
||||||
'empty_data' => null,
|
'empty_data' => '',
|
||||||
'trim' => false,
|
'trim' => false,
|
||||||
])
|
])
|
||||||
->add('ranges', CollectionType::class, [
|
->add('ranges', CollectionType::class, [
|
||||||
|
|
|
@ -37,8 +37,8 @@ class AnnotationRestController extends WallabagRestController
|
||||||
* @ApiDoc(
|
* @ApiDoc(
|
||||||
* requirements={
|
* requirements={
|
||||||
* {"name"="ranges", "dataType"="array", "requirement"="\w+", "description"="The range array for the annotation"},
|
* {"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"="quote", "dataType"="string", "description"="The annotated text"},
|
||||||
* {"name"="text", "dataType"="string", "required"=true, "description"=""},
|
* {"name"="text", "dataType"="string", "required"=true, "description"="Content of annotation"},
|
||||||
* }
|
* }
|
||||||
* )
|
* )
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue