@@ -361,72 +361,72 @@ func TestInvalidTestcasesV0(t *testing.T) {
361361 "description_invalid_language.yml" : ValidationResults {
362362 ValidationError {"description" , "must use a valid BCP 47 language" , 18 , 1 },
363363 },
364- "description_eng_features_missing .yml" : ValidationResults {
365- ValidationError {"description.eng .features" , "must be more than 0" , 22 , 5 },
364+ "description_en_features_missing .yml" : ValidationResults {
365+ ValidationError {"description.en .features" , "must be more than 0" , 22 , 5 },
366366 },
367- "description_eng_features_empty .yml" : ValidationResults {
368- ValidationError {"description.eng .features" , "must be more than 0" , 39 , 5 },
367+ "description_en_features_empty .yml" : ValidationResults {
368+ ValidationError {"description.en .features" , "must be more than 0" , 39 , 5 },
369369 },
370- "description_eng_localisedName_wrong_type .yml" : ValidationResults {
371- ValidationError {"description.eng .localisedName" , "wrong type for this field" , 21 , 1 },
370+ "description_en_localisedName_wrong_type .yml" : ValidationResults {
371+ ValidationError {"description.en .localisedName" , "wrong type for this field" , 21 , 1 },
372372 },
373- "description_eng_genericName_too_long .yml" : ValidationResults {
374- ValidationError {"description.eng .genericName" , "must be less or equal than 35" , 22 , 5 },
375- ValidationWarning {"description.eng .genericName" , "This key is DEPRECATED and will be removed in the future" , 22 , 5 },
373+ "description_en_genericName_too_long .yml" : ValidationResults {
374+ ValidationError {"description.en .genericName" , "must be less or equal than 35" , 22 , 5 },
375+ ValidationWarning {"description.en .genericName" , "This key is DEPRECATED and will be removed in the future" , 22 , 5 },
376376 },
377- "description_eng_shortDescription_missing .yml" : ValidationResults {
378- ValidationError {"description.eng .shortDescription" , "required" , 20 , 5 },
377+ "description_en_shortDescription_missing .yml" : ValidationResults {
378+ ValidationError {"description.en .shortDescription" , "required" , 20 , 5 },
379379 },
380- "description_eng_shortDescription_too_short .yml" : ValidationResults {
381- ValidationError {"description.eng .shortDescription" , "required" , 20 , 5 },
380+ "description_en_shortDescription_too_short .yml" : ValidationResults {
381+ ValidationError {"description.en .shortDescription" , "required" , 20 , 5 },
382382 },
383- "description_eng_longDescription_missing .yml" : ValidationResults {
384- ValidationError {"description.eng .longDescription" , "required" , 20 , 5 },
383+ "description_en_longDescription_missing .yml" : ValidationResults {
384+ ValidationError {"description.en .longDescription" , "required" , 20 , 5 },
385385 },
386- "description_eng_longDescription_too_long .yml" : ValidationResults {
387- ValidationError {"description.eng .longDescription" , "must be less or equal than 10000" , 27 , 5 },
386+ "description_en_longDescription_too_long .yml" : ValidationResults {
387+ ValidationError {"description.en .longDescription" , "must be less or equal than 10000" , 27 , 5 },
388388 },
389- "description_eng_longDescription_too_short .yml" : ValidationResults {
390- ValidationError {"description.eng .longDescription" , "must be more or equal than 150" , 27 , 5 },
389+ "description_en_longDescription_too_short .yml" : ValidationResults {
390+ ValidationError {"description.en .longDescription" , "must be more or equal than 150" , 27 , 5 },
391391 },
392- "description_eng_longDescription_too_short_grapheme_clusters .yml" : ValidationResults {
393- ValidationError {"description.eng .longDescription" , "must be more or equal than 150" , 28 , 5 },
392+ "description_en_longDescription_too_short_grapheme_clusters .yml" : ValidationResults {
393+ ValidationError {"description.en .longDescription" , "must be more or equal than 150" , 28 , 5 },
394394 },
395- "description_eng_documentation_invalid .yml" : ValidationResults {
396- ValidationError {"description.eng .documentation" , "must be an HTTP URL" , 25 , 5 },
397- ValidationError {"description.eng .documentation" , "'not_a_url' not reachable: missing URL scheme" , 25 , 5 },
395+ "description_en_documentation_invalid .yml" : ValidationResults {
396+ ValidationError {"description.en .documentation" , "must be an HTTP URL" , 25 , 5 },
397+ ValidationError {"description.en .documentation" , "'not_a_url' not reachable: missing URL scheme" , 25 , 5 },
398398 },
399- "description_eng_documentation_wrong_type .yml" : ValidationResults {
400- ValidationError {"description.eng .documentation" , "wrong type for this field" , 25 , 1 },
401- ValidationError {"description.eng .documentation" , "must be an HTTP URL" , 25 , 5 },
402- ValidationError {"description.eng .documentation" , "'' not reachable: missing URL scheme" , 25 , 5 },
399+ "description_en_documentation_wrong_type .yml" : ValidationResults {
400+ ValidationError {"description.en .documentation" , "wrong type for this field" , 25 , 1 },
401+ ValidationError {"description.en .documentation" , "must be an HTTP URL" , 25 , 5 },
402+ ValidationError {"description.en .documentation" , "'' not reachable: missing URL scheme" , 25 , 5 },
403403 },
404- "description_eng_apiDocumentation_invalid .yml" : ValidationResults {
405- ValidationError {"description.eng .apiDocumentation" , "must be an HTTP URL" , 41 , 5 },
406- ValidationError {"description.eng .apiDocumentation" , "'abc' not reachable: missing URL scheme" , 41 , 5 },
404+ "description_en_apiDocumentation_invalid .yml" : ValidationResults {
405+ ValidationError {"description.en .apiDocumentation" , "must be an HTTP URL" , 41 , 5 },
406+ ValidationError {"description.en .apiDocumentation" , "'abc' not reachable: missing URL scheme" , 41 , 5 },
407407 },
408- "description_eng_apiDocumentation_wrong_type .yml" : ValidationResults {
409- ValidationError {"description.eng .apiDocumentation" , "wrong type for this field" , 43 , 1 },
410- ValidationError {"description.eng .apiDocumentation" , "must be an HTTP URL" , 43 , 5 },
411- ValidationError {"description.eng .apiDocumentation" , "'' not reachable: missing URL scheme" , 43 , 5 },
408+ "description_en_apiDocumentation_wrong_type .yml" : ValidationResults {
409+ ValidationError {"description.en .apiDocumentation" , "wrong type for this field" , 43 , 1 },
410+ ValidationError {"description.en .apiDocumentation" , "must be an HTTP URL" , 43 , 5 },
411+ ValidationError {"description.en .apiDocumentation" , "'' not reachable: missing URL scheme" , 43 , 5 },
412412 },
413- "description_eng_screenshots_missing_file .yml" : ValidationResults {
413+ "description_en_screenshots_missing_file .yml" : ValidationResults {
414414 ValidationError {
415- "description.eng .screenshots[0]" ,
415+ "description.en .screenshots[0]" ,
416416 "'no_such_file.png' is not an image: no such file : https://raw.githubusercontent.com/italia/developers.italia.it/main/no_such_file.png" ,
417417 20 ,
418418 5 ,
419419 },
420420 },
421- "description_eng_awards_wrong_type .yml" : ValidationResults {
422- ValidationError {"description.eng .awards" , "wrong type for this field" , 40 , 1 },
421+ "description_en_awards_wrong_type .yml" : ValidationResults {
422+ ValidationError {"description.en .awards" , "wrong type for this field" , 40 , 1 },
423423 },
424- "description_eng_videos_invalid .yml" : ValidationResults {
425- ValidationError {"description.eng .videos[0]" , "must be an HTTP URL" , 20 , 5 },
426- ValidationError {"description.eng .videos[0]" , "'ABC' is not a valid video URL supporting oEmbed: invalid oEmbed link: ABC" , 20 , 5 },
424+ "description_en_videos_invalid .yml" : ValidationResults {
425+ ValidationError {"description.en .videos[0]" , "must be an HTTP URL" , 20 , 5 },
426+ ValidationError {"description.en .videos[0]" , "'ABC' is not a valid video URL supporting oEmbed: invalid oEmbed link: ABC" , 20 , 5 },
427427 },
428- "description_eng_videos_invalid_oembed .yml" : ValidationResults {
429- ValidationError {"description.eng .videos[0]" , "'https://google.com' is not a valid video URL supporting oEmbed: invalid oEmbed link: https://google.com" , 20 , 5 },
428+ "description_en_videos_invalid_oembed .yml" : ValidationResults {
429+ ValidationError {"description.en .videos[0]" , "'https://google.com' is not a valid video URL supporting oEmbed: invalid oEmbed link: https://google.com" , 20 , 5 },
430430 },
431431
432432 // legal
@@ -586,7 +586,7 @@ func TestValidTestcasesV0(t *testing.T) {
586586func TestValidWithWarningsTestcasesV0 (t * testing.T ) {
587587 expected := map [string ]error {
588588 "unicode_grapheme_clusters.yml" : ValidationResults {
589- ValidationWarning {"description.eng .genericName" , "This key is DEPRECATED and will be removed in the future" , 23 , 5 },
589+ ValidationWarning {"description.en .genericName" , "This key is DEPRECATED and will be removed in the future" , 23 , 5 },
590590 },
591591 "valid.minimal.v0.2.yml" : ValidationResults {
592592 ValidationWarning {"publiccodeYmlVersion" , "v0.2 is not the latest version, use '0.4.0'. Parsing this file as v0.4.0." , 1 , 1 },
0 commit comments