public static IInputObjectTypeDescriptor UseValidation( this IInputObjectTypeDescriptor descriptor) { descriptor .Extend() .OnBeforeCreate(inputTypeDefinition => Annotate(inputTypeDefinition)); return(descriptor); }