Skip to content

Commit 5d9449d

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Completes OPEN-3830 Update API reference URLs in error messages
1 parent 5f88da1 commit 5d9449d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openlayer/schemas.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ class DatasetSchema(ma.Schema):
6363
label = ma.fields.Str(
6464
validate=ma.validate.OneOf(
6565
[dataset_type.value for dataset_type in DatasetType],
66-
error="`label` must be one of the supported frameworks."
67-
+ "Check out our API reference for a full list"
68-
+ " https://reference.openlayer.com/reference/api/openlayer.DatasetType.html.\n ",
66+
error="`label` not supported."
67+
+ "The supported `labels` are 'training' and 'validation'.",
6968
),
7069
required=True,
7170
)
@@ -134,8 +133,9 @@ class ModelSchema(ma.Schema):
134133
validate=ma.validate.OneOf(
135134
[model_framework.value for model_framework in ModelType],
136135
error="`architectureType` must be one of the supported frameworks."
137-
+ " Check out our API reference for a full list"
138-
+ " https://reference.openlayer.com/reference/api/openlayer.ModelType.html.\n ",
136+
+ " Check out our API reference for a full list."
137+
+ " If you can't find your framework, specify 'custom' for your model's"
138+
+ " `architectureType`.",
139139
),
140140
required=True,
141141
)

0 commit comments

Comments
 (0)