Skip to content

Commit 82c4b1c

Browse files
authored
Merge pull request #210 from oej/media-type
Replace "mime" with "media" when referring to Internet media types
2 parents fef682d + 1945eb0 commit 82c4b1c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

spec/openapi.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ components:
791791
name: Build SBOM
792792
type: BOM
793793
formats:
794-
- mimeType: application/vnd.cyclonedx+xml
794+
- mediaType: application/vnd.cyclonedx+xml
795795
description: CycloneDX SBOM (XML)
796796
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7-cyclonedx.xml
797797
checksums:
@@ -801,7 +801,7 @@ components:
801801
name: Vulnerability Disclosure Report
802802
type: VULNERABILITIES
803803
formats:
804-
- mimeType: application/vnd.cyclonedx+xml
804+
- mediaType: application/vnd.cyclonedx+xml
805805
description: CycloneDX VDR (XML)
806806
url: https://tomcat.apache.org/cyclonedx/vdr.xml
807807
checksums:
@@ -853,7 +853,7 @@ components:
853853
name: Build SBOM
854854
type: BOM
855855
formats:
856-
- mimeType: application/vnd.cyclonedx+xml
856+
- mediaType: application/vnd.cyclonedx+xml
857857
description: CycloneDX SBOM (XML)
858858
url: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml
859859
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc
@@ -866,7 +866,7 @@ components:
866866
name: Vulnerability Disclosure Report
867867
type: VULNERABILITIES
868868
formats:
869-
- mimeType: application/vnd.cyclonedx+xml
869+
- mediaType: application/vnd.cyclonedx+xml
870870
description: CycloneDX VDR (XML)
871871
url: https://logging.apache.org/cyclonedx/vdr.xml
872872
checksums:
@@ -951,7 +951,7 @@ components:
951951
type: object
952952
description: A security-related document in a specific format
953953
properties:
954-
mimeType:
954+
mediaType:
955955
type: string
956956
description: The MIME type of the document
957957
description:

spec/publisher/openapi.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@
534534
"description": {
535535
"type": "string"
536536
},
537-
"mime_type": {
537+
"media_type": {
538538
"type": "string"
539539
},
540540
"artifact_url": {
@@ -572,7 +572,7 @@
572572
},
573573
"required": [
574574
"description",
575-
"mime_type",
575+
"media_type",
576576
"artifact_url",
577577
"artifact_size_in_bytes",
578578
"artifact_checksum",
@@ -625,7 +625,7 @@
625625
"objects": [
626626
{
627627
"description": "Example SBOM",
628-
"mime_type": "application/json",
628+
"media_type": "application/json",
629629
"artifact_url": "https://example.com/sbom.json",
630630
"artifact_size_in_bytes": 1024,
631631
"artifact_checksum": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
@@ -757,7 +757,7 @@
757757
"description": {
758758
"type": "string"
759759
},
760-
"mime_type": {
760+
"media_type": {
761761
"type": "string"
762762
},
763763
"artifact_url": {
@@ -795,7 +795,7 @@
795795
},
796796
"required": [
797797
"description",
798-
"mime_type",
798+
"media_type",
799799
"artifact_url",
800800
"artifact_size_in_bytes",
801801
"artifact_checksum",
@@ -927,7 +927,7 @@
927927
"description": {
928928
"type": "string"
929929
},
930-
"mime_type": {
930+
"media_type": {
931931
"type": "string"
932932
},
933933
"artifact_url": {
@@ -1096,7 +1096,7 @@
10961096
"description": {
10971097
"type": "string"
10981098
},
1099-
"mime_type": {
1099+
"media_type": {
11001100
"type": "string"
11011101
},
11021102
"artifact_url": {
@@ -1135,7 +1135,7 @@
11351135
"required": [
11361136
"identifier",
11371137
"description",
1138-
"mime_type",
1138+
"media_type",
11391139
"artifact_url",
11401140
"artifact_size_in_bytes",
11411141
"artifact_checksum",

tea-collection/tea-collection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ A TEA Artifact object contains the following fields:
352352
An array of objects, each representing the same artefact content in a different format.
353353
The order of the list is not significant.
354354
Each format object includes:
355-
- __mimeType__: The MIME type of the document (e.g., `application/vnd.cyclonedx+xml`).
355+
- __mediaType__: The MIME type of the document (e.g., `application/vnd.cyclonedx+xml`).
356356
- __description__: A free-text description of the artefact format.
357357
- __url__: A direct download URL for the artefact. This must point to an immutable resource.
358358
- __signatureUrl__ (optional): A direct download URL for a detached digital signature of the artefact, if available.
@@ -415,7 +415,7 @@ producing different alerts than other changes of a collection.
415415
"type": "BOM",
416416
"formats": [
417417
{
418-
"mimeType": "application/vnd.cyclonedx+xml",
418+
"mediaType": "application/vnd.cyclonedx+xml",
419419
"description": "CycloneDX SBOM (XML)",
420420
"url": "https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml",
421421
"signatureUrl": "https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc",
@@ -438,7 +438,7 @@ producing different alerts than other changes of a collection.
438438
"type": "VULNERABILITIES",
439439
"formats": [
440440
{
441-
"mimeType": "application/vnd.cyclonedx+xml",
441+
"mediaType": "application/vnd.cyclonedx+xml",
442442
"description": "CycloneDX VDR (XML)",
443443
"url": "https://logging.apache.org/cyclonedx/vdr.xml",
444444
"checksums": [

0 commit comments

Comments
 (0)