@@ -256,17 +256,17 @@ func TestInvalidTestcasesV0(t *testing.T) {
256256
257257 // inputTypes
258258 "inputTypes_invalid.yml" : ValidationResults {
259+ ValidationError {"inputTypes[1]" , "inputTypes[1] is not a valid MIME type" , 1 , 1 },
259260 ValidationWarning {"inputTypes" , "This key is DEPRECATED and will be removed in the future" , 14 , 1 },
260- ValidationError {"inputTypes[1]" , "'foobar' is not a MIME type" , 1 , 1 },
261261 },
262262 "inputTypes_wrong_type.yml" : ValidationResults {
263263 ValidationError {"inputTypes.foobar" , "wrong type for this field" , 15 , 1 },
264264 },
265265
266266 // outputTypes
267267 "outputTypes_invalid.yml" : ValidationResults {
268+ ValidationError {"outputTypes[1]" , "outputTypes[1] is not a valid MIME type" , 1 , 1 },
268269 ValidationWarning {"outputTypes" , "This key is DEPRECATED and will be removed in the future" , 14 , 1 },
269- ValidationError {"outputTypes[1]" , "'foobar' is not a MIME type" , 1 , 1 },
270270 },
271271 "outputTypes_wrong_type.yml" : ValidationResults {
272272 ValidationError {"outputTypes.foobar" , "wrong type for this field" , 15 , 1 },
@@ -594,6 +594,10 @@ func TestValidWithWarningsTestcasesV0(t *testing.T) {
594594 "valid.minimal.v0.3.yml" : ValidationResults {
595595 ValidationWarning {"publiccodeYmlVersion" , "v0.3 is not the latest version, use '0.4.0'. Parsing this file as v0.4.0." , 1 , 1 },
596596 },
597+ "valid.mime_types.yml" : ValidationResults {
598+ ValidationWarning {"inputTypes" , "This key is DEPRECATED and will be removed in the future" , 48 , 1 },
599+ ValidationWarning {"outputTypes" , "This key is DEPRECATED and will be removed in the future" , 50 , 1 },
600+ },
597601 }
598602
599603 testFiles , _ := filepath .Glob ("testdata/v0/valid_with_warnings/*yml" )
0 commit comments