Skip to content

Commit 78d9d81

Browse files
authored
Merge pull request #177 from ppkarwasz/feat/release-formats
feat: add TEA Release formats
2 parents b3d81f6 + c33f926 commit 78d9d81

File tree

2 files changed

+427
-87
lines changed

2 files changed

+427
-87
lines changed

spec/openapi.yaml

Lines changed: 130 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ components:
339339
#
340340
release:
341341
type: object
342+
description: A TEA Component Release
342343
properties:
343344
uuid:
344345
description: A unique identifier for the TEA Component Release
@@ -363,28 +364,63 @@ components:
363364
description: List of identifiers for the component
364365
items:
365366
"$ref": "#/components/schemas/identifier"
367+
distributions:
368+
type: array
369+
description: List of different formats of this component release
370+
items:
371+
"$ref": "#/components/schemas/release-distribution"
366372
# add lifecycle here
367373
required:
368374
- uuid
369375
- version
370376
- createdDate
371377
examples:
372-
# Apache Tomcat 11.0.6
378+
# Apache Tomcat 11.0.7
373379
- uuid: 605d0ecb-1057-40e4-9abf-c400b10f0345
374-
version: "11.0.6"
375-
createdDate: 2025-04-01T15:43:00Z
376-
releaseDate: 2025-04-01T15:43:00Z
380+
version: "11.0.7"
381+
createdDate: 2025-05-07T18:08:00Z
382+
releaseDate: 2025-05-12T18:08:00Z
377383
identifiers:
378384
- idType: PURL
379-
idValue: pkg:maven/org.apache.tomcat/[email protected]
380-
# Different release of Apache Tomcat
381-
- uuid: da89e38e-95e7-44ca-aa7d-f3b6b34c7fab
382-
version: "10.1.40"
383-
createdDate: 2025-04-01T18:20:00Z
384-
releaseDate: 2025-04-01T18:20:00Z
385-
identifiers:
386-
- idType: PURL
387-
idValue: pkg:maven/org.apache.tomcat/[email protected]
385+
idValue: pkg:maven/org.apache.tomcat/[email protected]
386+
distributions:
387+
- distributionType: zip
388+
description: Core binary distribution, zip archive
389+
identifiers:
390+
- idType: PURL
391+
idValue: pkg:maven/org.apache.tomcat/[email protected]?type=zip
392+
checksums:
393+
- algType: SHA_256
394+
algValue: 9da736a1cdd27231e70187cbc67398d29ca0b714f885e7032da9f1fb247693c1
395+
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.zip
396+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.zip.asc
397+
- distributionType: tar.gz
398+
description: Core binary distribution, tar.gz archive
399+
identifiers:
400+
- idType: PURL
401+
idValue: pkg:maven/org.apache.tomcat/[email protected]?type=tar.gz
402+
checksums:
403+
- algType: SHA_256
404+
algValue: 2fcece641c62ba1f28e1d7b257493151fc44f161fb391015ee6a95fa71632fb9
405+
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.tar.gz
406+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.tar.gz.asc
407+
- distributionType: windows-x64.zip
408+
description: Core binary distribution, Windows x64 zip archive
409+
identifiers:
410+
- idType: PURL
411+
idValue: pkg:maven/org.apache.tomcat/[email protected]?classifier=windows-x64&type=zip
412+
checksums:
413+
- algType: SHA_256
414+
algValue: 62a5c358d87a8ef21d7ec1b3b63c9bbb577453dda9c00cbb522b16cee6c23fc4
415+
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6-windows-x64.zip
416+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.zip.asc
417+
- distributionType: windows-x64.exe
418+
description: Core binary distribution, Windows Service Installer (MSI)
419+
checksums:
420+
- algType: SHA_512
421+
algValue: 1d3824e7643c8aba455ab0bd9e67b14a60f2aaa6aa7775116bce40eb0579e8ced162a4f828051d3b867e96ee2858ec5da0cc654e83a83ba30823cbea0df4ff96
422+
url: https://dlcdn.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe
423+
signatureUrl: https://downloads.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe.asc
388424
# A pre-release of Apache Tomcat
389425
- uuid: 95f481df-f760-47f4-b2f2-f8b76d858450
390426
version: "11.0.0-M26"
@@ -393,6 +429,74 @@ components:
393429
identifiers:
394430
- idType: PURL
395431
idValue: pkg:maven/org.apache.tomcat/[email protected]
432+
release-distribution:
433+
type: object
434+
properties:
435+
distributionType:
436+
type: string
437+
description: Unique identifier for the distribution type.
438+
description:
439+
type: string
440+
description: Free-text description of the distribution.
441+
identifiers:
442+
type: array
443+
description: List of identifiers specific to this distribution.
444+
items:
445+
$ref: "#/components/schemas/identifier"
446+
url:
447+
type: string
448+
description: Direct download URL for the distribution.
449+
format: url
450+
signatureUrl:
451+
type: string
452+
description: Direct download URL for the distribution's external signature.
453+
format: url
454+
checksums:
455+
type: array
456+
description: List of checksums for the distribution.
457+
items:
458+
"$ref": "#/components/schemas/checksum"
459+
required:
460+
- id
461+
examples:
462+
- distributionType: zip
463+
description: Core binary distribution, zip archive
464+
identifiers:
465+
- idType: PURL
466+
idValue: pkg:maven/org.apache.tomcat/[email protected]?type=zip
467+
checksums:
468+
- algType: SHA_256
469+
algValue: 9da736a1cdd27231e70187cbc67398d29ca0b714f885e7032da9f1fb247693c1
470+
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.zip
471+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.zip.asc
472+
- distributionType: tar.gz
473+
description: Core binary distribution, tar.gz archive
474+
identifiers:
475+
- idType: PURL
476+
idValue: pkg:maven/org.apache.tomcat/[email protected]?type=tar.gz
477+
checksums:
478+
- algType: SHA_256
479+
algValue: 2fcece641c62ba1f28e1d7b257493151fc44f161fb391015ee6a95fa71632fb9
480+
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.tar.gz
481+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.tar.gz.asc
482+
- distributionType: windows-x64.zip
483+
description: Core binary distribution, Windows x64 zip archive
484+
identifiers:
485+
- idType: PURL
486+
idValue: pkg:maven/org.apache.tomcat/[email protected]?classifier=windows-x64&type=zip
487+
checksums:
488+
- algType: SHA_256
489+
algValue: 62a5c358d87a8ef21d7ec1b3b63c9bbb577453dda9c00cbb522b16cee6c23fc4
490+
url: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6-windows-x64.zip
491+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.6.zip.asc
492+
- distributionType: windows-x64.exe
493+
description: Core binary distribution, Windows Service Installer (MSI)
494+
checksums:
495+
- algType: SHA_512
496+
algValue: 1d3824e7643c8aba455ab0bd9e67b14a60f2aaa6aa7775116bce40eb0579e8ced162a4f828051d3b867e96ee2858ec5da0cc654e83a83ba30823cbea0df4ff96
497+
url: https://dlcdn.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe
498+
signatureUrl: https://downloads.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe.asc
499+
396500

397501
#
398502
# TEA Collection and related objects
@@ -492,6 +596,15 @@ components:
492596
type:
493597
description: Type of artifact
494598
"$ref": "#/components/schemas/artifact-type"
599+
distributionTypes:
600+
type: array
601+
description: |
602+
List of component distributions types that this artifact applies to.
603+
If absent, the artifact applies to all distributions.
604+
items:
605+
type: string
606+
description: |
607+
The `id` of the component format that this artifact applies to.
495608
formats:
496609
type: array
497610
description: |
@@ -536,17 +649,17 @@ components:
536649
type: array
537650
description: List of checksums for the artifact
538651
items:
539-
"$ref": "#/components/schemas/artifact-checksum"
540-
artifact-checksum:
652+
"$ref": "#/components/schemas/checksum"
653+
checksum:
541654
type: object
542655
properties:
543656
algType:
544657
description: Checksum algorithm
545-
"$ref": "#/components/schemas/artifact-checksum-type"
658+
"$ref": "#/components/schemas/checksum-type"
546659
algValue:
547660
type: string
548661
description: Checksum value
549-
artifact-checksum-type:
662+
checksum-type:
550663
type: string
551664
description: Checksum algorithm
552665
enum:

0 commit comments

Comments
 (0)