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

56 lines
1.8 KiB
Swift

//
// CommitJSON.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CommitJSON: Sendable, Codable, ParameterConvertible, Hashable {
/** AuthorEmail is the commit author's email. */
public var authorEmail: String?
/** AuthorName is the commit author's name. */
public var authorName: String?
/** Date is the author date, RFC 3339 UTC. */
public var date: String?
/** Message is the commit's SUBJECT — its first line only. */
public var message: String?
/** SHA is the full commit hash. */
public var sha: String?
/** ShortSHA is the abbreviated hash a UI displays. */
public var shortSha: String?
public init(authorEmail: String? = nil, authorName: String? = nil, date: String? = nil, message: String? = nil, sha: String? = nil, shortSha: String? = nil) {
self.authorEmail = authorEmail
self.authorName = authorName
self.date = date
self.message = message
self.sha = sha
self.shortSha = shortSha
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case authorEmail
case authorName
case date
case message
case sha
case shortSha
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(authorEmail, forKey: .authorEmail)
try container.encodeIfPresent(authorName, forKey: .authorName)
try container.encodeIfPresent(date, forKey: .date)
try container.encodeIfPresent(message, forKey: .message)
try container.encodeIfPresent(sha, forKey: .sha)
try container.encodeIfPresent(shortSha, forKey: .shortSha)
}
}