Files

51 lines
1.7 KiB
Swift

//
// NewIssue.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct NewIssue: Sendable, Codable, ParameterConvertible, Hashable {
/** Description becomes the issue body. */
public var description: String?
/** Key is the board — the repository name, from the path. */
public var key: String?
/** Priority is one of none, urgent, high, medium or low. */
public var priority: String?
/** Status is the board column to open into: backlog, todo, in_progress, done or canceled. Empty opens into backlog. */
public var status: String?
/** Title is the one line the card is read by on the board. Blank or whitespace is refused — an untitled card cannot be told apart from any other. */
public var title: String?
public init(description: String? = nil, key: String? = nil, priority: String? = nil, status: String? = nil, title: String? = nil) {
self.description = description
self.key = key
self.priority = priority
self.status = status
self.title = title
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case description
case key
case priority
case status
case title
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(key, forKey: .key)
try container.encodeIfPresent(priority, forKey: .priority)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(title, forKey: .title)
}
}