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.
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
//
|
|
// GithubSearchReq.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct GithubSearchReq: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Limit caps the answer; 0 takes the default and anything above the ceiling is clamped rather than refused. */
|
|
public var limit: Int64?
|
|
/** Q is GitHub's own search syntax, passed through: \"tetris language:go\", \"org:hanzoai stars:>10\". Passing it through rather than inventing a vocabulary means one thing to learn, and it is theirs. */
|
|
public var q: String?
|
|
|
|
public init(limit: Int64? = nil, q: String? = nil) {
|
|
self.limit = limit
|
|
self.q = q
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case limit
|
|
case q
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(limit, forKey: .limit)
|
|
try container.encodeIfPresent(q, forKey: .q)
|
|
}
|
|
}
|
|
|