mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
form: readd pattern
to path
This commit is contained in:
parent
bd9bf29a88
commit
fccb291d78
1 changed files with 2 additions and 4 deletions
|
@ -396,6 +396,7 @@ class AlertOption(BaseReadonlyOption):
|
||||||
|
|
||||||
class ButtonOption(BaseReadonlyOption):
|
class ButtonOption(BaseReadonlyOption):
|
||||||
type: Literal[OptionType.button] = OptionType.button
|
type: Literal[OptionType.button] = OptionType.button
|
||||||
|
bind: Literal["null"] = "null"
|
||||||
help: Union[Translation, None] = None
|
help: Union[Translation, None] = None
|
||||||
style: State = State.success
|
style: State = State.success
|
||||||
icon: Union[str, None] = None
|
icon: Union[str, None] = None
|
||||||
|
@ -839,10 +840,8 @@ class EmailOption(BaseInputOption):
|
||||||
_annotation = EmailStr
|
_annotation = EmailStr
|
||||||
|
|
||||||
|
|
||||||
class WebPathOption(BaseInputOption):
|
class WebPathOption(BaseStringOption):
|
||||||
type: Literal[OptionType.path] = OptionType.path
|
type: Literal[OptionType.path] = OptionType.path
|
||||||
default: Union[str, None]
|
|
||||||
_annotation = str
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def normalize(value, option={}) -> str:
|
def normalize(value, option={}) -> str:
|
||||||
|
@ -876,7 +875,6 @@ class WebPathOption(BaseInputOption):
|
||||||
|
|
||||||
class URLOption(BaseStringOption):
|
class URLOption(BaseStringOption):
|
||||||
type: Literal[OptionType.url] = OptionType.url
|
type: Literal[OptionType.url] = OptionType.url
|
||||||
default: Union[str, None]
|
|
||||||
_annotation = HttpUrl
|
_annotation = HttpUrl
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue