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
2.0 KiB
Swift

//
// RiskValue.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RiskValue: Sendable, Codable, ParameterConvertible, Hashable {
/** Baseline is what Observed was measured against: this organisation's own history for this subject. */
public var baseline: Double?
/** Blind marks a coordinate that could not be computed and took its neutral value. A model silently reading neutral for a dimension it never has data for is indistinguishable from one reading a genuine absence of risk. */
public var blind: Bool?
/** Feature is the dimension. */
public var feature: String?
/** Observed is the raw number X was computed from, quoted so the coordinate reads back as a sentence rather than a bare ratio. */
public var observed: Double?
/** Unit is how to read Observed. */
public var unit: String?
/** X is the coordinate in the model space, always dimensionless. */
public var x: Double?
public init(baseline: Double? = nil, blind: Bool? = nil, feature: String? = nil, observed: Double? = nil, unit: String? = nil, x: Double? = nil) {
self.baseline = baseline
self.blind = blind
self.feature = feature
self.observed = observed
self.unit = unit
self.x = x
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case baseline
case blind
case feature
case observed
case unit
case x
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(baseline, forKey: .baseline)
try container.encodeIfPresent(blind, forKey: .blind)
try container.encodeIfPresent(feature, forKey: .feature)
try container.encodeIfPresent(observed, forKey: .observed)
try container.encodeIfPresent(unit, forKey: .unit)
try container.encodeIfPresent(x, forKey: .x)
}
}