(schema *Schema)
| 231 | } |
| 232 | |
| 233 | func validateTypeDefinitions(schema *Schema) *gqlerror.Error { |
| 234 | types := make([]string, 0, len(schema.Types)) |
| 235 | for typ := range schema.Types { |
| 236 | types = append(types, typ) |
| 237 | } |
| 238 | sort.Strings(types) |
| 239 | for _, typ := range types { |
| 240 | err := validateDefinition(schema, schema.Types[typ]) |
| 241 | if err != nil { |
| 242 | return err |
| 243 | } |
| 244 | } |
| 245 | return nil |
| 246 | } |
| 247 | |
| 248 | func validateDirectiveDefinitions(schema *Schema) *gqlerror.Error { |
| 249 | directives := make([]string, 0, len(schema.Directives)) |
no test coverage detected
searching dependent graphs…