Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api update for object type #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ public struct XcodeMetrics: Codable {
public var version: String?
public var value: Double?
public var errorMargin: Double?
public var percentageBreakdown: PercentageBreakdown?
public var percentageBreakdown: [PercentageBreakdownItem]?
public var goal: String?

public struct PercentageBreakdown: Codable {
public struct PercentageBreakdownItem: Codable {
public var value: Double?
public var subSystemLabel: String?

Expand All @@ -151,7 +151,7 @@ public struct XcodeMetrics: Codable {
}
}

public init(version: String? = nil, value: Double? = nil, errorMargin: Double? = nil, percentageBreakdown: PercentageBreakdown? = nil, goal: String? = nil) {
public init(version: String? = nil, value: Double? = nil, errorMargin: Double? = nil, percentageBreakdown: [PercentageBreakdownItem]? = nil, goal: String? = nil) {
self.version = version
self.value = value
self.errorMargin = errorMargin
Expand All @@ -164,7 +164,7 @@ public struct XcodeMetrics: Codable {
self.version = try values.decodeIfPresent(String.self, forKey: "version")
self.value = try values.decodeIfPresent(Double.self, forKey: "value")
self.errorMargin = try values.decodeIfPresent(Double.self, forKey: "errorMargin")
self.percentageBreakdown = try values.decodeIfPresent(PercentageBreakdown.self, forKey: "percentageBreakdown")
self.percentageBreakdown = try values.decodeIfPresent([PercentageBreakdownItem].self, forKey: "percentageBreakdown")
self.goal = try values.decodeIfPresent(String.self, forKey: "goal")
}

Expand Down
17 changes: 10 additions & 7 deletions Sources/OpenAPI/app_store_connect_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -144091,13 +144091,16 @@
"type": "number"
},
"percentageBreakdown": {
"type": "object",
"properties": {
"value": {
"type": "number"
},
"subSystemLabel": {
"type": "string"
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "number"
},
"subSystemLabel": {
"type": "string"
}
}
}
},
Expand Down