@@ -124,13 +124,13 @@ struct IntrospectionSchema: Codable {
124
124
let types : [ AnyIntrospectionType ]
125
125
// let directives: [IntrospectionDirective]
126
126
127
- func encode( to encoder: Encoder ) throws {
128
- try types. encode ( to: encoder)
129
- }
127
+ // func encode(to encoder: Encoder) throws {
128
+ // try types.encode(to: encoder)
129
+ // }
130
130
}
131
131
132
132
protocol IntrospectionType : Codable {
133
- static var kind : TypeKind2 { get }
133
+ var kind : TypeKind2 { get }
134
134
var name : String { get }
135
135
}
136
136
@@ -212,22 +212,22 @@ struct AnyIntrospectionType: Codable {
212
212
//extension IntrospectionInputObjectType: IntrospectionInputType {}
213
213
//
214
214
struct IntrospectionScalarType : IntrospectionType {
215
- static let kind = TypeKind2 . scalar
215
+ var kind = TypeKind2 . scalar
216
216
let name : String
217
217
let description : String ?
218
218
let specifiedByURL : String ?
219
219
}
220
220
221
221
struct IntrospectionObjectType : IntrospectionType {
222
- static let kind = TypeKind2 . object
222
+ var kind = TypeKind2 . object
223
223
let name : String
224
224
let description : String ?
225
225
let fields : [ IntrospectionField ] ?
226
226
let interfaces : [ IntrospectionTypeRef ] ?
227
227
}
228
228
229
229
struct IntrospectionInterfaceType : IntrospectionType {
230
- static let kind = TypeKind2 . interface
230
+ var kind = TypeKind2 . interface
231
231
let name : String
232
232
let description : String ?
233
233
let fields : [ IntrospectionField ] ?
@@ -236,21 +236,21 @@ struct IntrospectionInterfaceType: IntrospectionType {
236
236
}
237
237
238
238
struct IntrospectionUnionType : IntrospectionType {
239
- static let kind = TypeKind2 . union
239
+ var kind = TypeKind2 . union
240
240
let name : String
241
241
let description : String ?
242
242
let possibleTypes : [ IntrospectionTypeRef ]
243
243
}
244
244
245
245
struct IntrospectionEnumType : IntrospectionType {
246
- static let kind = TypeKind2 . enum
246
+ var kind = TypeKind2 . enum
247
247
let name : String
248
248
let description : String ?
249
249
let enumValues : [ IntrospectionEnumValue ]
250
250
}
251
251
252
252
struct IntrospectionInputObjectType : IntrospectionType {
253
- static let kind = TypeKind2 . inputObject
253
+ var kind = TypeKind2 . inputObject
254
254
let name : String
255
255
let description : String ?
256
256
let inputFields : [ IntrospectionInputValue ]
0 commit comments