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

54 lines
2.0 KiB
Swift

//
// CurateReq.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CurateReq: Sendable, Codable, ParameterConvertible, Hashable {
/** Featured puts the listing on the front of the shelf, or takes it off. */
public var featured: Bool?
/** Hidden takes the listing off the org-visible shelf, or puts it back. */
public var hidden: Bool?
/** ID is the listing to curate, from the path. */
public var id: String?
/** Logo is the brand mark to render, an https URL. Empty clears ours and lets the next sync adopt the publisher's own icon again. */
public var logo: String?
/** Official overrides the derivation: setting it makes this answer FINAL, so no later sync re-derives over it. That is the difference between a default and a decision — the derivation can only tell that a domain-verified publisher serves the endpoint, not that the product is theirs. */
public var official: Bool?
public init(featured: Bool? = nil, hidden: Bool? = nil, id: String? = nil, logo: String? = nil, official: Bool? = nil) {
self.featured = featured
self.hidden = hidden
self.id = id
self.logo = logo
self.official = official
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case featured
case hidden
case id
case logo
case official
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(featured, forKey: .featured)
try container.encodeIfPresent(hidden, forKey: .hidden)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(logo, forKey: .logo)
try container.encodeIfPresent(official, forKey: .official)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension CurateReq: Identifiable {}