Skip to content

Commit

Permalink
Update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0c committed Jan 6, 2022
1 parent 672df35 commit 8962b8b
Show file tree
Hide file tree
Showing 509 changed files with 509 additions and 509 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct AdditionalPropertiesClass: Codable, JSONEncodable, Hashable{
public struct AdditionalPropertiesClass: Codable, JSONEncodable, Hashable {

public var mapString: [String: String]?
public var mapMapString: [String: [String: String]]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Animal: Codable, JSONEncodable, Hashable{
public struct Animal: Codable, JSONEncodable, Hashable {

public var className: String
public var color: String? = "red"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ApiResponse: Codable, JSONEncodable, Hashable{
public struct ApiResponse: Codable, JSONEncodable, Hashable {

public var code: Int?
public var type: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ArrayOfArrayOfNumberOnly: Codable, JSONEncodable, Hashable{
public struct ArrayOfArrayOfNumberOnly: Codable, JSONEncodable, Hashable {

public var arrayArrayNumber: [[Double]]?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ArrayOfNumberOnly: Codable, JSONEncodable, Hashable{
public struct ArrayOfNumberOnly: Codable, JSONEncodable, Hashable {

public var arrayNumber: [Double]?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ArrayTest: Codable, JSONEncodable, Hashable{
public struct ArrayTest: Codable, JSONEncodable, Hashable {

public var arrayOfString: [String]?
public var arrayArrayOfInteger: [[Int64]]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Capitalization: Codable, JSONEncodable, Hashable{
public struct Capitalization: Codable, JSONEncodable, Hashable {

public var smallCamel: String?
public var capitalCamel: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Cat: Codable, JSONEncodable, Hashable{
public struct Cat: Codable, JSONEncodable, Hashable {

public var className: String
public var color: String? = "red"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct CatAllOf: Codable, JSONEncodable, Hashable{
public struct CatAllOf: Codable, JSONEncodable, Hashable {

public var declawed: Bool?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Category: Codable, JSONEncodable, Hashable{
public struct Category: Codable, JSONEncodable, Hashable {

public var id: Int64?
public var name: String? = "default-name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AnyCodable
#endif

/** Model for testing model with \"_class\" property */
public struct ClassModel: Codable, JSONEncodable, Hashable{
public struct ClassModel: Codable, JSONEncodable, Hashable {

public var _class: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Client: Codable, JSONEncodable, Hashable{
public struct Client: Codable, JSONEncodable, Hashable {

public var client: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Dog: Codable, JSONEncodable, Hashable{
public struct Dog: Codable, JSONEncodable, Hashable {

public var className: String
public var color: String? = "red"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct DogAllOf: Codable, JSONEncodable, Hashable{
public struct DogAllOf: Codable, JSONEncodable, Hashable {

public var breed: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct EnumArrays: Codable, JSONEncodable, Hashable{
public struct EnumArrays: Codable, JSONEncodable, Hashable {

public enum JustSymbol: String, Codable, CaseIterable {
case greaterThanOrEqualTo = ">="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct EnumTest: Codable, JSONEncodable, Hashable{
public struct EnumTest: Codable, JSONEncodable, Hashable {

public enum EnumString: String, Codable, CaseIterable {
case upper = "UPPER"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AnyCodable
#endif

/** Must be named `File` for test. */
public struct File: Codable, JSONEncodable, Hashable{
public struct File: Codable, JSONEncodable, Hashable {

/** Test capitalization */
public var sourceURI: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct FileSchemaTestClass: Codable, JSONEncodable, Hashable{
public struct FileSchemaTestClass: Codable, JSONEncodable, Hashable {

public var file: File?
public var files: [File]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct FormatTest: Codable, JSONEncodable, Hashable{
public struct FormatTest: Codable, JSONEncodable, Hashable {

public var integer: Int?
public var int32: Int?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct HasOnlyReadOnly: Codable, JSONEncodable, Hashable{
public struct HasOnlyReadOnly: Codable, JSONEncodable, Hashable {

public var bar: String?
public var foo: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct List: Codable, JSONEncodable, Hashable{
public struct List: Codable, JSONEncodable, Hashable {

public var _123list: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct MapTest: Codable, JSONEncodable, Hashable{
public struct MapTest: Codable, JSONEncodable, Hashable {

public enum MapOfEnumString: String, Codable, CaseIterable {
case upper = "UPPER"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, JSONEncodable, Hashable{
public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, JSONEncodable, Hashable {

public var uuid: UUID?
public var dateTime: Date?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AnyCodable
#endif

/** Model for testing model name starting with number */
public struct Model200Response: Codable, JSONEncodable, Hashable{
public struct Model200Response: Codable, JSONEncodable, Hashable {

public var name: Int?
public var _class: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AnyCodable
#endif

/** Model for testing model name same as property name */
public struct Name: Codable, JSONEncodable, Hashable{
public struct Name: Codable, JSONEncodable, Hashable {

public var name: Int
public var snakeCase: NullEncodable<Int> = .encodeValue(11033)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct NumberOnly: Codable, JSONEncodable, Hashable{
public struct NumberOnly: Codable, JSONEncodable, Hashable {

public var justNumber: Double?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Order: Codable, JSONEncodable, Hashable{
public struct Order: Codable, JSONEncodable, Hashable {

public enum Status: String, Codable, CaseIterable {
case placed = "placed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct OuterComposite: Codable, JSONEncodable, Hashable{
public struct OuterComposite: Codable, JSONEncodable, Hashable {

public var myNumber: Double?
public var myString: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Pet: Codable, JSONEncodable, Hashable{
public struct Pet: Codable, JSONEncodable, Hashable {

public enum Status: String, Codable, CaseIterable {
case available = "available"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ReadOnlyFirst: Codable, JSONEncodable, Hashable{
public struct ReadOnlyFirst: Codable, JSONEncodable, Hashable {

public var bar: String?
public var baz: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AnyCodable
#endif

/** Model for testing reserved words */
public struct Return: Codable, JSONEncodable, Hashable{
public struct Return: Codable, JSONEncodable, Hashable {

public var _return: Int?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct SpecialModelName: Codable, JSONEncodable, Hashable{
public struct SpecialModelName: Codable, JSONEncodable, Hashable {

public var specialPropertyName: Int64?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct StringBooleanMap: Codable, JSONEncodable, Hashable{
public struct StringBooleanMap: Codable, JSONEncodable, Hashable {


public enum CodingKeys: CodingKey, CaseIterable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Tag: Codable, JSONEncodable, Hashable{
public struct Tag: Codable, JSONEncodable, Hashable {

public var id: Int64?
public var name: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct TypeHolderDefault: Codable, JSONEncodable, Hashable{
public struct TypeHolderDefault: Codable, JSONEncodable, Hashable {

public var stringItem: String = "what"
public var numberItem: Double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct TypeHolderExample: Codable, JSONEncodable, Hashable{
public struct TypeHolderExample: Codable, JSONEncodable, Hashable {

public var stringItem: String
public var numberItem: Double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct User: Codable, JSONEncodable, Hashable{
public struct User: Codable, JSONEncodable, Hashable {

public var id: Int64?
public var username: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct AdditionalPropertiesClass: Codable, JSONEncodable, Hashable{
public struct AdditionalPropertiesClass: Codable, JSONEncodable, Hashable {

public var mapString: [String: String]?
public var mapMapString: [String: [String: String]]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Animal: Codable, JSONEncodable, Hashable{
public struct Animal: Codable, JSONEncodable, Hashable {

public var className: String
public var color: String? = "red"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ApiResponse: Codable, JSONEncodable, Hashable{
public struct ApiResponse: Codable, JSONEncodable, Hashable {

public var code: Int?
public var type: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ArrayOfArrayOfNumberOnly: Codable, JSONEncodable, Hashable{
public struct ArrayOfArrayOfNumberOnly: Codable, JSONEncodable, Hashable {

public var arrayArrayNumber: [[Double]]?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ArrayOfNumberOnly: Codable, JSONEncodable, Hashable{
public struct ArrayOfNumberOnly: Codable, JSONEncodable, Hashable {

public var arrayNumber: [Double]?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct ArrayTest: Codable, JSONEncodable, Hashable{
public struct ArrayTest: Codable, JSONEncodable, Hashable {

public var arrayOfString: [String]?
public var arrayArrayOfInteger: [[Int64]]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import AnyCodable
#endif

public struct Capitalization: Codable, JSONEncodable, Hashable{
public struct Capitalization: Codable, JSONEncodable, Hashable {

public var smallCamel: String?
public var capitalCamel: String?
Expand Down
Loading

0 comments on commit 8962b8b

Please sign in to comment.