mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
61 lines
2.0 KiB
Swift
61 lines
2.0 KiB
Swift
//
|
|
// FrameworkRow.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct FrameworkRow: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Edition is which edition this clause list is taken from. */
|
|
public var edition: String?
|
|
/** Framework is the framework id. */
|
|
public var framework: String?
|
|
/** Name is the published standard's name. */
|
|
public var name: String?
|
|
/** Publisher is who publishes it. */
|
|
public var publisher: String?
|
|
/** Total is how many clauses the standard publishes. */
|
|
public var total: Int64?
|
|
/** Unit is what one clause is; Units is its plural. */
|
|
public var unit: String?
|
|
/** Units is Unit's plural, carried so a caller renders \"12 controls\" without having to pluralise a word it does not know. */
|
|
public var units: String?
|
|
|
|
public init(edition: String? = nil, framework: String? = nil, name: String? = nil, publisher: String? = nil, total: Int64? = nil, unit: String? = nil, units: String? = nil) {
|
|
self.edition = edition
|
|
self.framework = framework
|
|
self.name = name
|
|
self.publisher = publisher
|
|
self.total = total
|
|
self.unit = unit
|
|
self.units = units
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case edition
|
|
case framework
|
|
case name
|
|
case publisher
|
|
case total
|
|
case unit
|
|
case units
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(edition, forKey: .edition)
|
|
try container.encodeIfPresent(framework, forKey: .framework)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(publisher, forKey: .publisher)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
try container.encodeIfPresent(unit, forKey: .unit)
|
|
try container.encodeIfPresent(units, forKey: .units)
|
|
}
|
|
}
|
|
|