Skip to content

Commit 39ecfa5

Browse files
committed
fix: openapi schema inconsistencies
Signed-off-by: Pavel Shukhman <[email protected]>
1 parent 0be3bc8 commit 39ecfa5

File tree

1 file changed

+18
-27
lines changed

1 file changed

+18
-27
lines changed

spec/openapi.yaml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ paths:
2727
required: true
2828
description: UUID of the TEA product in the TEA server
2929
schema:
30-
type: string
31-
format: uuid
30+
"$ref": "#/components/schemas/uuid"
3231
responses:
3332
'200':
3433
description: Requested TEA Product found and returned
@@ -52,8 +51,7 @@ paths:
5251
required: true
5352
description: UUID of TEA Product in the TEA server
5453
schema:
55-
type: string
56-
format: uuid
54+
"$ref": "#/components/schemas/uuid"
5755
responses:
5856
'200':
5957
description: Requested Releases of TEA Product found and returned
@@ -79,8 +77,7 @@ paths:
7977
required: true
8078
description: UUID of TEA Product Release in the TEA server
8179
schema:
82-
type: string
83-
format: uuid
80+
"$ref": "#/components/schemas/uuid"
8481
responses:
8582
'200':
8683
description: Requested TEA Product Release found and returned
@@ -105,7 +102,7 @@ paths:
105102
- $ref: "#/components/parameters/id-value"
106103
responses:
107104
'200':
108-
$ref: "#/components/responses/paginated-productRelease"
105+
$ref: "#/components/responses/paginated-product-release"
109106
'400':
110107
$ref: "#/components/responses/400-invalid-request"
111108
tags:
@@ -137,8 +134,7 @@ paths:
137134
required: true
138135
description: UUID of TEA Component in the TEA server
139136
schema:
140-
type: string
141-
format: uuid
137+
"$ref": "#/components/schemas/uuid"
142138
responses:
143139
'200':
144140
description: Requested TEA Component found and returned
@@ -162,8 +158,7 @@ paths:
162158
required: true
163159
description: UUID of TEA Component in the TEA server
164160
schema:
165-
type: string
166-
format: uuid
161+
"$ref": "#/components/schemas/uuid"
167162
responses:
168163
'200':
169164
description: Requested Releases of TEA Component found and returned
@@ -189,8 +184,7 @@ paths:
189184
required: true
190185
description: UUID of TEA Release in the TEA server
191186
schema:
192-
type: string
193-
format: uuid
187+
"$ref": "#/components/schemas/uuid"
194188
responses:
195189
'200':
196190
description: Requested TEA Collection found and returned
@@ -214,8 +208,7 @@ paths:
214208
required: true
215209
description: UUID of TEA Product Release in the TEA server
216210
schema:
217-
type: string
218-
format: uuid
211+
"$ref": "#/components/schemas/uuid"
219212
responses:
220213
'200':
221214
description: Requested TEA Collection found and returned
@@ -239,8 +232,7 @@ paths:
239232
required: true
240233
description: UUID of TEA Release in the TEA server
241234
schema:
242-
type: string
243-
format: uuid
235+
"$ref": "#/components/schemas/uuid"
244236
responses:
245237
'200':
246238
description: Requested TEA Collection found and returned
@@ -266,8 +258,7 @@ paths:
266258
required: true
267259
description: UUID of TEA Product Release in the TEA server
268260
schema:
269-
type: string
270-
format: uuid
261+
"$ref": "#/components/schemas/uuid"
271262
responses:
272263
'200':
273264
description: Requested TEA Collection found and returned
@@ -291,7 +282,7 @@ paths:
291282
- name: uuid
292283
in: path
293284
required: true
294-
description: UUID of TEA Collection in the TEA server
285+
description: UUID of TEA Release in the TEA server
295286
schema:
296287
"$ref": "#/components/schemas/uuid"
297288
- name: collectionVersion
@@ -528,7 +519,7 @@ components:
528519
# Reference to a component, in some cases directly to a specific release
529520
#
530521
# The release reference (release UUID) is only used in cases where a product
531-
# name incldues a version and this version of the product always include
522+
# name includes a version and this version of the product always includes
532523
# the same releases of the component.
533524
component-ref:
534525
type: object
@@ -653,20 +644,20 @@ components:
653644
name: Build SBOM
654645
type: BOM
655646
formats:
656-
- mime_type: application/vnd.cyclonedx+xml
647+
- mimeType: application/vnd.cyclonedx+xml
657648
description: CycloneDX SBOM (XML)
658649
url: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml
659-
signature_url: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc
650+
signatureUrl: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc
660651
checksums:
661652
- algType: MD5
662653
algValue: 2e1a525afc81b0a8ecff114b8b743de9
663654
- algType: SHA-1
664655
algValue: 5a7d4caef63c5c5ccdf07c39337323529eb5a770
665656
- uuid: dfa35519-9734-4259-bba1-3e825cf4be06
666657
name: Vulnerability Disclosure Report
667-
type: vulnerability-assertion
658+
type: VULNERABILITIES
668659
formats:
669-
- mime_type: application/vnd.cyclonedx+xml
660+
- mimeType: application/vnd.cyclonedx+xml
670661
description: CycloneDX VDR (XML)
671662
url: https://logging.apache.org/cyclonedx/vdr.xml
672663
checksums:
@@ -742,7 +733,7 @@ components:
742733
type: object
743734
description: A security-related document in a specific format
744735
properties:
745-
mime_type:
736+
mimeType:
746737
type: string
747738
description: The MIME type of the document
748739
description:
@@ -842,7 +833,7 @@ components:
842833
type: array
843834
items:
844835
"$ref": "#/components/schemas/product"
845-
paginated-productRelease:
836+
paginated-product-release:
846837
description: A paginated response containing TEA Product Releases
847838
content:
848839
application/json:

0 commit comments

Comments
 (0)