Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

36 lines
1.5 KiB
Swift

//
// GithubReposOut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct GithubReposOut: Sendable, Codable, ParameterConvertible, Hashable {
/** Repos is every repo the installation grants. Never null; [] when none. */
public var repos: [GithubRepoView]?
/** Unread names the connected accounts this answer could NOT read, so a short list is distinguishable from a complete one. Absent when the answer is whole. The fan-out is per installation, and one account failing used to be dropped in silence: the response stayed 200 and simply carried fewer repositories, erroring only when EVERY account failed. Measured, twice in a row, minutes apart: 1475 repositories, then 1157 — a whole installation missing with nothing in the answer to say so. Anything driven off the list then under-covers and reports success, which is the failure this field ends. */
public var unread: [String]?
public init(repos: [GithubRepoView]? = nil, unread: [String]? = nil) {
self.repos = repos
self.unread = unread
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case repos
case unread
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(repos, forKey: .repos)
try container.encodeIfPresent(unread, forKey: .unread)
}
}