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

61 lines
2.3 KiB
Swift

//
// ScoreConfigView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ScoreConfigView: Sendable, Codable, ParameterConvertible, Hashable {
/** Categories is the closed set of labels a CATEGORICAL score may carry. */
public var categories: [String]?
/** CreatedAt is when the rubric was first declared. */
public var createdAt: String?
/** DataType is NUMERIC, CATEGORICAL or BOOLEAN, and is authoritative — a score recorded under this name cannot claim a different one. */
public var dataType: String?
/** MaxValue is the inclusive ceiling a NUMERIC score must stay under, absent when unbounded. */
public var maxValue: Double?
/** MinValue is the inclusive floor a NUMERIC score must clear, absent when unbounded. */
public var minValue: Double?
/** Name is the score name this rubric governs. */
public var name: String?
/** UpdatedAt is when it last changed. */
public var updatedAt: String?
public init(categories: [String]? = nil, createdAt: String? = nil, dataType: String? = nil, maxValue: Double? = nil, minValue: Double? = nil, name: String? = nil, updatedAt: String? = nil) {
self.categories = categories
self.createdAt = createdAt
self.dataType = dataType
self.maxValue = maxValue
self.minValue = minValue
self.name = name
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case categories
case createdAt
case dataType
case maxValue
case minValue
case name
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(categories, forKey: .categories)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(dataType, forKey: .dataType)
try container.encodeIfPresent(maxValue, forKey: .maxValue)
try container.encodeIfPresent(minValue, forKey: .minValue)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}