Skip to content

Commit 224dcbc

Browse files
authored
proposal: use +json postfix to mark json annotation values (#50)
proposal: use `+json` postfix to mark json ann val Signed-off-by: tarilabs <[email protected]>
1 parent b4b9a24 commit 224dcbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This property contains arbitrary metadata, and SHOULD follow the rules of [OCI i
88

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

11-
- **`org.cnai.model.file.metadata`**: Specifies the metadata of the file (string), value is the JSON string of [File Metadata Annotation Value](#File-Metadata-Annotation-Value).
11+
- **`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).
1212

1313
### Layer Annotation Values
1414

specs-go/v1/annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
AnnotationFilepath = "org.cnai.model.filepath"
2424

2525
// AnnotationFileMetadata is the annotation key for the file metadata of the layer.
26-
AnnotationFileMetadata = "org.cnai.model.file.metadata"
26+
AnnotationFileMetadata = "org.cnai.model.file.metadata+json"
2727
)
2828

2929
// FileMetadata represents the metadata of file, which is the value definition of AnnotationFileMetadata.

0 commit comments

Comments
 (0)