diff --git a/dedoc/api/api_args.py b/dedoc/api/api_args.py index cd75b6e5..8ffdc7b9 100644 --- a/dedoc/api/api_args.py +++ b/dedoc/api/api_args.py @@ -8,7 +8,7 @@ class QueryParameters: # type of document structure parsing document_type: str = Form("", enum=["", "law", "tz", "diploma", "article", "fintoc"], description="Document domain") - patterns: str = Form(None, description='Patterns for default document type (when document_type="")') + patterns: str = Form("", description='Patterns for default document type (when document_type="")') structure_type: str = Form("tree", enum=["linear", "tree"], description="Output structure type") return_format: str = Form("json", enum=["json", "html", "plain_text", "tree", "collapsed_tree", "ujson", "pretty_json"], description="Response representation, most types (except json) are used for debug purposes only") diff --git a/dedoc/api/web/index.html b/dedoc/api/web/index.html index 423dbcfe..d0c8b984 100644 --- a/dedoc/api/web/index.html +++ b/dedoc/api/web/index.html @@ -28,7 +28,7 @@

Parameters configuration

Type of document structure parsing

-
document_type, structure_type, return_format +
document_type, patterns, structure_type, return_format

Type of document structure parsing

+

+

+ Patterns for default structure extractor (document_type="other")
+
+ +
+

+