diff --git a/schema/config-schema.json b/schema/config-schema.json index 1da7bd6..94e88f3 100644 --- a/schema/config-schema.json +++ b/schema/config-schema.json @@ -71,6 +71,12 @@ "sourceURL": { "type": "string" }, + "datasetsURL": { + "type": "array", + "items": { + "type": "string" + } + }, "version": { "type": "string" }, diff --git a/schema/config_test.go b/schema/config_test.go index 20a691c..fd6b644 100644 --- a/schema/config_test.go +++ b/schema/config_test.go @@ -200,6 +200,29 @@ func TestConfig(t *testing.T) { ] } } +`, + fail: true, + }, + // expected failure: datasetsURL is not an array + { + config: ` +{ + "descriptor": { + "name": "xyz-3-8B-Instruct", + "version": "3.1", + "sourceURL": "https://github.com/xyz/xyz3", + "datasetsURL": "https://example.com/dataset" + }, + "config": { + "paramSize": "8b" + }, + "modelfs": { + "type": "layers", + "diffIds": [ + "sha256:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" + ] + } +} `, fail: true, },