mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
50 lines
1.7 KiB
Swift
50 lines
1.7 KiB
Swift
//
|
|
// CaptableRoundIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CaptableRoundIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var name: JSONValue?
|
|
public var preMoneyValuation: JSONValue?
|
|
public var pricePerShare: JSONValue?
|
|
public var roundType: JSONValue?
|
|
public var shareClassId: JSONValue?
|
|
public var targetAmount: JSONValue?
|
|
|
|
public init(name: JSONValue? = nil, preMoneyValuation: JSONValue? = nil, pricePerShare: JSONValue? = nil, roundType: JSONValue? = nil, shareClassId: JSONValue? = nil, targetAmount: JSONValue? = nil) {
|
|
self.name = name
|
|
self.preMoneyValuation = preMoneyValuation
|
|
self.pricePerShare = pricePerShare
|
|
self.roundType = roundType
|
|
self.shareClassId = shareClassId
|
|
self.targetAmount = targetAmount
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case name
|
|
case preMoneyValuation
|
|
case pricePerShare
|
|
case roundType
|
|
case shareClassId
|
|
case targetAmount
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(preMoneyValuation, forKey: .preMoneyValuation)
|
|
try container.encodeIfPresent(pricePerShare, forKey: .pricePerShare)
|
|
try container.encodeIfPresent(roundType, forKey: .roundType)
|
|
try container.encodeIfPresent(shareClassId, forKey: .shareClassId)
|
|
try container.encodeIfPresent(targetAmount, forKey: .targetAmount)
|
|
}
|
|
}
|
|
|