private void checkObjectImplementsInterface ( GraphQLObjectType objectType , GraphQLInterfaceType interfaceType , SchemaValidationErrorCollector validationErrorCollector ) { List < GraphQLFieldDefinition > fieldDefinitions = interfaceType . getFieldDefinitions ( ) ; for ( GraphQLFieldDefinition interfaceFieldDef : fieldDefinitions ) { GraphQLFieldDefinition objectFieldDef = objectType . getFieldDefinition ( interfaceFieldDef . getName ( ) ) ; if ( objectFieldDef == null ) { validationErrorCollector . addError ( error ( format ( "object type '%s' does not implement interface '%s' because field '%s' is missing" , objectType . getName ( ) , interfaceType . getName ( ) , interfaceFieldDef . getName ( ) ) ) ) ; } else { checkFieldTypeCompatibility ( objectType , interfaceType , validationErrorCollector , interfaceFieldDef , objectFieldDef ) ; } } }
when completely open