Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Commit 6fd505e

Browse files
committed
adopt json field names from https://github.com/opencontainers/image-spec which is used in the moby
project
1 parent 6dd54fc commit 6fd505e

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

engine-api-model/docker-engine-api-v1.41.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11310,14 +11310,14 @@ paths:
1131011310
description: |
1131111311
A descriptor struct containing digest, media type, and size.
1131211312
properties:
11313-
MediaType:
11313+
mediaType:
1131411314
type: "string"
11315-
Size:
11315+
size:
1131611316
type: "integer"
1131711317
format: "int64"
11318-
Digest:
11318+
digest:
1131911319
type: "string"
11320-
URLs:
11320+
urls:
1132111321
type: "array"
1132211322
items:
1132311323
type: "string"
@@ -11328,17 +11328,17 @@ paths:
1132811328
items:
1132911329
type: "object"
1133011330
properties:
11331-
Architecture:
11331+
architecture:
1133211332
type: "string"
11333-
OS:
11333+
os:
1133411334
type: "string"
11335-
OSVersion:
11335+
os.version:
1133611336
type: "string"
11337-
OSFeatures:
11337+
os.features:
1133811338
type: "array"
1133911339
items:
1134011340
type: "string"
11341-
Variant:
11341+
variant:
1134211342
type: "string"
1134311343
Features:
1134411344
type: "array"
@@ -11353,12 +11353,12 @@ paths:
1135311353
URLs:
1135411354
- ""
1135511355
Platforms:
11356-
- Architecture: "amd64"
11357-
OS: "linux"
11358-
OSVersion: ""
11359-
OSFeatures:
11356+
- architecture: "amd64"
11357+
os: "linux"
11358+
os.version: ""
11359+
os.features:
1136011360
- ""
11361-
Variant: ""
11361+
variant: ""
1136211362
Features:
1136311363
- ""
1136411364
401:

engine-api-model/docs/DistributionInspectResponseDescriptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**mediaType** | **kotlin.String** | | [optional]
88
**size** | **kotlin.Long** | | [optional]
99
**digest** | **kotlin.String** | | [optional]
10-
**urLs** | **kotlin.collections.List<kotlin.String>** | | [optional]
10+
**urls** | **kotlin.collections.List<kotlin.String>** | | [optional]
1111

1212

1313

engine-api-model/docs/DistributionInspectResponsePlatforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**architecture** | **kotlin.String** | | [optional]
8-
**OS** | **kotlin.String** | | [optional]
8+
**os** | **kotlin.String** | | [optional]
99
**osVersion** | **kotlin.String** | | [optional]
1010
**osFeatures** | **kotlin.collections.List<kotlin.String>** | | [optional]
1111
**variant** | **kotlin.String** | | [optional]

engine-api-model/src/main/kotlin/de/gesellix/docker/engine/model/DistributionInspectResponseDescriptor.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ import com.squareup.moshi.JsonClass
1919
* @param mediaType
2020
* @param size
2121
* @param digest
22-
* @param urLs
22+
* @param urls
2323
*/
2424
@JsonClass(generateAdapter = true)
2525
data class DistributionInspectResponseDescriptor(
26-
@Json(name = "MediaType")
26+
@Json(name = "mediaType")
2727
val mediaType: kotlin.String? = null,
28-
@Json(name = "Size")
28+
@Json(name = "size")
2929
val size: kotlin.Long? = null,
30-
@Json(name = "Digest")
30+
@Json(name = "digest")
3131
val digest: kotlin.String? = null,
32-
@Json(name = "URLs")
33-
val urLs: kotlin.collections.List<kotlin.String>? = null
32+
@Json(name = "urls")
33+
val urls: kotlin.collections.List<kotlin.String>? = null
3434
)

engine-api-model/src/main/kotlin/de/gesellix/docker/engine/model/DistributionInspectResponsePlatforms.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ import com.squareup.moshi.JsonClass
1717
/**
1818
*
1919
* @param architecture
20-
* @param OS
20+
* @param os
2121
* @param osVersion
2222
* @param osFeatures
2323
* @param variant
2424
* @param features
2525
*/
2626
@JsonClass(generateAdapter = true)
2727
data class DistributionInspectResponsePlatforms(
28-
@Json(name = "Architecture")
28+
@Json(name = "architecture")
2929
val architecture: kotlin.String? = null,
30-
@Json(name = "OS")
31-
val OS: kotlin.String? = null,
32-
@Json(name = "OSVersion")
30+
@Json(name = "os")
31+
val os: kotlin.String? = null,
32+
@Json(name = "os.version")
3333
val osVersion: kotlin.String? = null,
34-
@Json(name = "OSFeatures")
34+
@Json(name = "os.features")
3535
val osFeatures: kotlin.collections.List<kotlin.String>? = null,
36-
@Json(name = "Variant")
36+
@Json(name = "variant")
3737
val variant: kotlin.String? = null,
3838
@Json(name = "Features")
3939
val features: kotlin.collections.List<kotlin.String>? = null

0 commit comments

Comments
 (0)