import Foundation

/// An object representing a Boolean schema type.
/// Get more info: https://swagger.io/specification/#schemaObject
public struct SpecBooleanSchema: Codable, Equatable, Changeable {

    // MARK: - Nested Types

    private enum CodingKeys: String, CodingKey {
        case defaultValue = "default"
    }

    // MARK: - Type Properties

    internal static let typeCodingValue = "boolean"

    // MARK: - Instance Properties

    /// Default value.
    public var defaultValue: Bool?

    // MARK: - Initializers

    /// Creates a new instance with the provided default value.
    public init(defaultValue: Bool? = nil) {
        self.defaultValue = defaultValue
    }
}
