We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9750fb4 commit a6470ffCopy full SHA for a6470ff
openlayer/schemas.py
@@ -86,6 +86,10 @@ class BaseDatasetSchema(ma.Schema):
86
),
87
required=True,
88
)
89
+ language = ma.fields.Str(
90
+ load_default="en",
91
+ validate=LANGUAGE_CODE_REGEX,
92
+ )
93
metadata = ma.fields.Dict(allow_none=True, load_default={})
94
sep = ma.fields.Str(load_default=",")
95
@@ -107,10 +111,6 @@ class TabularInputSchema(BaseDatasetSchema):
107
111
class TextInputSchema(BaseDatasetSchema):
108
112
"""Specific schema for text datasets."""
109
113
110
- language = ma.fields.Str(
- load_default="en",
- validate=LANGUAGE_CODE_REGEX,
- )
114
textColumnName = ma.fields.Str(
115
validate=COLUMN_NAME_VALIDATION_LIST,
116
allow_none=True,
0 commit comments