Skip to content

Commit 1acf408

Browse files
committed
feat: replace snake_case with kebab-case
Signed-off-by: Piotr P. Karwasz <[email protected]>
1 parent 10d574e commit 1acf408

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Diff for: spec/openapi.yaml

+22-22
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ paths:
4343
match.
4444
operationId: getTeaProductByIdentifier
4545
parameters:
46-
- $ref: "#/components/schemas/identifier_type"
46+
- $ref: "#/components/schemas/identifier-type"
4747
- $ref: "#/components/parameters/product-identifier"
4848
- $ref: "#/components/parameters/page-offset"
4949
- $ref: "#/components/parameters/page-size"
@@ -101,7 +101,7 @@ components:
101101
#
102102
# Definitions reused in multiple domain objects
103103
#
104-
date_time:
104+
date-time:
105105
type: string
106106
description: Timestamp
107107
format: date-time
@@ -111,10 +111,10 @@ components:
111111
description: An identifier with a specified type
112112
properties:
113113
idType:
114-
"$ref": "#/components/schemas/identifier_type"
114+
"$ref": "#/components/schemas/identifier-type"
115115
idValue:
116116
type: string
117-
identifier_type:
117+
identifier-type:
118118
type: string
119119
description: Enumeration of identifiers types
120120
enum:
@@ -176,13 +176,13 @@ components:
176176
type: array
177177
description: List of released versions for the component
178178
items:
179-
"$ref": "#/components/schemas/component_version"
179+
"$ref": "#/components/schemas/component-version"
180180
required:
181181
- uuid
182182
- name
183183
- identifiers
184184
- versions
185-
component_version:
185+
component-version:
186186
type: object
187187
description: A specific version of a TEA leaf
188188
properties:
@@ -197,7 +197,7 @@ components:
197197
items:
198198
"$ref": "#/components/schemas/identifier"
199199
release_date:
200-
"$ref": "#/components/schemas/date_time"
200+
"$ref": "#/components/schemas/date-time"
201201
description: Release date
202202
pre_release:
203203
type: boolean
@@ -227,17 +227,17 @@ components:
227227
default: 1
228228
description: Collection version, incremented each time its content changes.
229229
update_reason:
230-
"$ref": "#/components/schemas/collection_update_reason"
231-
collection_update_reason:
230+
"$ref": "#/components/schemas/collection-update-reason"
231+
collection-update-reason:
232232
type: object
233233
description: Reason for the last update to the TEA collection
234234
properties:
235235
type:
236-
"$ref": "#/components/schemas/collection_update_reason_type"
236+
"$ref": "#/components/schemas/collection-update-reason-type"
237237
comment:
238238
type: string
239239
description: Free text description
240-
collection_update_reason_type:
240+
collection-update-reason-type:
241241
type: string
242242
description: Type of TEA collection update
243243
enum:
@@ -259,14 +259,14 @@ components:
259259
type: string
260260
description: Artifact name
261261
author:
262-
"$ref": "#/components/schemas/artifact_author"
262+
"$ref": "#/components/schemas/artifact-author"
263263
type:
264-
"$ref": "#/components/schemas/artifact_type"
264+
"$ref": "#/components/schemas/artifact-type"
265265
formats:
266266
type: array
267267
items:
268-
"$ref": "#/components/schemas/artifact_format"
269-
artifact_author:
268+
"$ref": "#/components/schemas/artifact-format"
269+
artifact-author:
270270
type: object
271271
description: The author of a document.
272272
properties:
@@ -280,7 +280,7 @@ components:
280280
organization:
281281
type: string
282282
description: Organization
283-
artifact_type:
283+
artifact-type:
284284
type: string
285285
description: Specifies the type of external reference.
286286
enum:
@@ -420,7 +420,7 @@ components:
420420
Vulnerability Disclosure)
421421
other: Use this if no other types accurately describe the purpose of the external
422422
reference.
423-
artifact_format:
423+
artifact-format:
424424
type: object
425425
description: A security-related document in a specific format
426426
properties:
@@ -444,16 +444,16 @@ components:
444444
type: array
445445
description: List of checksums for the artifact
446446
items:
447-
"$ref": "#/components/schemas/artifact_checksum"
448-
artifact_checksum:
447+
"$ref": "#/components/schemas/artifact-checksum"
448+
artifact-checksum:
449449
type: object
450450
properties:
451451
algType:
452-
"$ref": "#/components/schemas/artifact_checksum_alg"
452+
"$ref": "#/components/schemas/artifact-checksum-type"
453453
algValue:
454454
type: string
455455
description: Checksum value
456-
artifact_checksum_alg:
456+
artifact-checksum-type:
457457
type: string
458458
description: Checksum algorithm
459459
enum:
@@ -540,7 +540,7 @@ components:
540540
in: path
541541
required: true
542542
schema:
543-
$ref: "#/components/schemas/identifier_type"
543+
$ref: "#/components/schemas/identifier-type"
544544
product-identifier:
545545
name: product-identifier
546546
description: The actual identifier string

0 commit comments

Comments
 (0)