@@ -383,64 +383,64 @@ public void Validate(List<string> issues, SpdxDocument? doc, bool ntia = false)
383383 {
384384 // Validate Package Name Field
385385 if ( Name . Length == 0 )
386- issues . Add ( "Package Invalid Package Name Field" ) ;
386+ issues . Add ( "Package Invalid Package Name Field - Empty " ) ;
387387
388388 // SPDX NTIA Unique Identifier Check
389389 if ( ! SpdxRefRegex . IsMatch ( Id ) )
390- issues . Add ( $ "Package { Name } Invalid SPDX Identifier Field") ;
390+ issues . Add ( $ "Package ' { Name } ' Invalid SPDX Identifier Field ' { Id } ' ") ;
391391
392392 // Validate Package Download Location Field
393393 if ( DownloadLocation . Length == 0 )
394- issues . Add ( $ "Package { Name } Invalid Package Download Location Field") ;
394+ issues . Add ( $ "Package ' { Name } ' Invalid Package Download Location Field - Empty ") ;
395395
396396 // Validate Package Supplier Field
397397 if ( Supplier != null &&
398398 Supplier != NoAssertion &&
399399 ! Supplier . StartsWith ( "Person:" ) &&
400400 ! Supplier . StartsWith ( "Organization:" ) )
401- issues . Add ( $ "Package { Name } Invalid Package Supplier Field") ;
401+ issues . Add ( $ "Package ' { Name } ' Invalid Package Supplier Field ' { Supplier } ' ") ;
402402
403403 // Validate Package Originator Field
404404 if ( Originator != null &&
405405 Originator != NoAssertion &&
406406 ! Originator . StartsWith ( "Person:" ) &&
407407 ! Originator . StartsWith ( "Organization:" ) )
408- issues . Add ( $ "Package { Name } Invalid Package Originator Field") ;
408+ issues . Add ( $ "Package ' { Name } ' Invalid Package Originator Field ' { Originator } ' ") ;
409409
410410 // Validate verification code
411411 VerificationCode ? . Validate ( Name , issues ) ;
412412
413413 // Validate checksums
414414 foreach ( var checksum in Checksums )
415- checksum . Validate ( $ "Package { Name } ", issues ) ;
415+ checksum . Validate ( $ "Package ' { Name } ' ", issues ) ;
416416
417417 // Validate external references
418418 foreach ( var externalReference in ExternalReferences )
419419 externalReference . Validate ( Name , issues ) ;
420420
421421 // If the document is provided then ensure all referenced files exist
422422 if ( doc != null && Array . Exists ( HasFiles , file => Array . TrueForAll ( doc . Files , df => df . Id != file ) ) )
423- issues . Add ( $ "Package { Name } HasFiles references missing files") ;
423+ issues . Add ( $ "Package ' { Name } ' HasFiles references missing files") ;
424424
425425 // SPDX NTIA Supplier Name Check
426426 if ( ntia && string . IsNullOrEmpty ( Supplier ) )
427- issues . Add ( $ "NTIA: Package { Name } Missing Supplier") ;
427+ issues . Add ( $ "NTIA: Package ' { Name } ' Missing Supplier") ;
428428
429429 // SPDX NTIA Version String Check
430430 if ( ntia && string . IsNullOrEmpty ( Version ) )
431- issues . Add ( $ "NTIA: Package { Name } Missing Version") ;
431+ issues . Add ( $ "NTIA: Package ' { Name } ' Missing Version") ;
432432
433433 // Release Date field
434434 if ( ! SpdxHelpers . IsValidSpdxDateTime ( ReleaseDate ) )
435- issues . Add ( $ "Package { Name } Invalid Release Date Field") ;
435+ issues . Add ( $ "Package ' { Name } ' Invalid Release Date Field ' { ReleaseDate } ' ") ;
436436
437437 // Built Date field
438438 if ( ! SpdxHelpers . IsValidSpdxDateTime ( BuiltDate ) )
439- issues . Add ( $ "Package { Name } Invalid Built Date Field") ;
439+ issues . Add ( $ "Package ' { Name } ' Invalid Built Date Field ' { BuiltDate } ' ") ;
440440
441441 // Valid Until Date field
442442 if ( ! SpdxHelpers . IsValidSpdxDateTime ( ValidUntilDate ) )
443- issues . Add ( $ "Package { Name } Invalid Valid Until Date Field") ;
443+ issues . Add ( $ "Package ' { Name } ' Invalid Valid Until Date Field ' { ValidUntilDate } ' ") ;
444444 }
445445
446446 /// <summary>
0 commit comments