Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

36 lines
1.2 KiB
Swift

//
// Verdict.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Verdict: Sendable, Codable, ParameterConvertible, Hashable {
/** Flags are the findings behind the severity, in detection order: floating-declared, floating-running, stale, un-rolled, then the release-artifact ones. Always present — `[]` for a row that runs what it declares, never null. */
public var flags: [DriftFlag]?
/** Severity is the roll-up over Flags — red if any flag is red, else yellow if any is yellow, else ok. It is the column a board sorts and filters on, and \"ok\" is exactly what no flags means. */
public var severity: String?
public init(flags: [DriftFlag]? = nil, severity: String? = nil) {
self.flags = flags
self.severity = severity
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case flags
case severity
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(flags, forKey: .flags)
try container.encodeIfPresent(severity, forKey: .severity)
}
}