22 references to InvalidMetadata
Aspire.Hosting (22)
Publishing\ContainerImageArchiveRewriter.cs (22)
226throw InvalidMetadata(entryName, "the root value must be an array"); 233throw InvalidMetadata(entryName, "each manifest must be an object"); 243throw InvalidMetadata(entryName, "'RepoTags' must be an array when present"); 251throw InvalidMetadata(entryName, $"'{reference}' is not a tagged image reference"); 278throw InvalidMetadata(entryName, "the root value must be an object"); 286throw InvalidMetadata(entryName, $"repository '{repository.Key}' must map tags to layer identifiers"); 294throw InvalidMetadata( 339throw InvalidMetadata(entryName, "the root value must be an object"); 344throw InvalidMetadata(entryName, "'manifests' must be an array"); 351throw InvalidMetadata(entryName, $"descriptor {descriptorIndex} must be an object"); 361throw InvalidMetadata(entryName, $"descriptor {descriptorIndex} 'annotations' must be an object"); 385throw InvalidMetadata( 396throw InvalidMetadata( 405throw InvalidMetadata( 416throw InvalidMetadata( 430throw InvalidMetadata(entryName, $"descriptor {descriptorIndex} mixes the source and destination image identities"); 494throw InvalidMetadata( 504throw InvalidMetadata(entry.Name, "the entry must be a regular file"); 509throw InvalidMetadata(entry.Name, $"the entry exceeds the {MaxNamingMetadataLength}-byte safety limit"); 512var dataStream = entry.DataStream ?? throw InvalidMetadata(entry.Name, "the entry has no data"); 523?? throw InvalidMetadata(entryName, "the JSON document is empty"); 553throw InvalidMetadata(entryName, $"{location} must be a non-empty string");