File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,12 @@ public class Schema {
114
114
)
115
115
}
116
116
117
- public static func enumString( description: String ? = nil , nullable: Bool = false ,
118
- enumValues: String ... ) -> Schema {
119
- return Schema . enumString ( description: description, nullable: nullable, enumValues: enumValues)
120
- }
121
-
122
- static func enumString( description: String ? , nullable: Bool , enumValues: [ String ] ) -> Schema {
117
+ public static func enumeration( values: [ String ] , description: String ? , nullable: Bool ) -> Schema {
123
118
return self . init (
124
119
type: . string,
125
120
format: " enum " , description: description,
126
121
nullable: nullable,
127
- enumValues: enumValues
122
+ enumValues: values
128
123
)
129
124
}
130
125
@@ -160,8 +155,7 @@ public class Schema {
160
155
return self . init ( type: . boolean, description: description, nullable: nullable)
161
156
}
162
157
163
- public static func array( description: String ? = nil , nullable: Bool = false ,
164
- items: Schema ) -> Schema {
158
+ public static func array( items: Schema , description: String ? = nil , nullable: Bool = false ) -> Schema {
165
159
return self . init ( type: . array, description: description, nullable: nullable, items: items)
166
160
}
167
161
You can’t perform that action at this time.
0 commit comments