Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This property contains arbitrary metadata, and SHOULD follow the rules of [OCI i

### Layer Annotation Keys

- **`org.cnai.model.filepath`**: Specifies the file path of the layer (string).
- **`org.cncf.model.filepath`**: Specifies the file path of the layer (string).

- **`org.cnai.model.file.metadata+json`**: Specifies the metadata of the file (string), value is the JSON string of [File Metadata Annotation Value](#File-Metadata-Annotation-Value).
- **`org.cncf.model.file.metadata+json`**: Specifies the metadata of the file (string), value is the JSON string of [File Metadata Annotation Value](#File-Metadata-Annotation-Value).

- **`org.cnai.model.file.mediatype.untested`**: Indicates whether the media type classification of files in the layer is untested (string). Valid values are `"true"` or `"false"`. When set to `"true"`, it signals that the model packager has not verified the media type classification and the type is inferred or assumed based on some heuristics.
- **`org.cncf.model.file.mediatype.untested`**: Indicates whether the media type classification of files in the layer is untested (string). Valid values are `"true"` or `"false"`. When set to `"true"`, it signals that the model packager has not verified the media type classification and the type is inferred or assumed based on some heuristics.

### Layer Annotation Values

Expand Down
6 changes: 3 additions & 3 deletions specs-go/v1/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import "time"

const (
// AnnotationFilepath is the annotation key for the file path of the layer.
AnnotationFilepath = "org.cnai.model.filepath"
AnnotationFilepath = "org.cncf.model.filepath"

// AnnotationFileMetadata is the annotation key for the file metadata of the layer.
AnnotationFileMetadata = "org.cnai.model.file.metadata+json"
AnnotationFileMetadata = "org.cncf.model.file.metadata+json"

// AnnotationUntested is the annotation key for file media type untested flag of the layer.
AnnotationMediaTypeUntested = "org.cnai.model.file.mediatype.untested"
AnnotationMediaTypeUntested = "org.cncf.model.file.mediatype.untested"
)

// FileMetadata represents the metadata of file, which is the value definition of AnnotationFileMetadata.
Expand Down
Loading